summaryrefslogtreecommitdiffstats
path: root/src/entities/status.rs
diff options
context:
space:
mode:
authorPaul Woolcock <paul@woolcock.us>2020-10-07 05:47:39 -0400
committerPaul Woolcock <paul@woolcock.us>2020-10-07 09:06:13 -0400
commit02ca0a89515413ac9fb3b655de2f21f6a711e0f2 (patch)
tree004bcd9f88eca168e10e1ac85c5987fdd6769fcf /src/entities/status.rs
parent04b5b54212629f058bdab1ba55c89a3d417e0454 (diff)
Add basic async client
This adds a module, accessible by compiling with `--features async`, that provides an `elefren::async::Client`. The client is runtime-agnostic, and currently only provides unauthenticated access, see the docs for the full list of methods that can be performed* with this client. * note that some API calls are publicly available by default, but can be changed via instance settings to not be publicly accessible
Diffstat (limited to 'src/entities/status.rs')
-rw-r--r--src/entities/status.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/entities/status.rs b/src/entities/status.rs
index 7243449..c65cb9c 100644
--- a/src/entities/status.rs
+++ b/src/entities/status.rs
@@ -2,11 +2,8 @@
use super::prelude::*;
use crate::{
- entities::{
- card::Card,
- poll::Poll,
- },
- status_builder::Visibility
+ entities::{card::Card, poll::Poll},
+ status_builder::Visibility,
};
use chrono::prelude::*;
use serde::{Deserialize, Serialize};
@@ -64,7 +61,10 @@ pub struct Status {
pub card: Option<Card>,
/// The detected language for the status, if detected.
pub language: Option<String>,
- /// Plain-text source of a status. Returned instead of content when status is deleted, so the user may redraft from the source text without the client having to reverse-engineer the original text from the HTML content.
+ /// Plain-text source of a status. Returned instead of content when status
+ /// is deleted, so the user may redraft from the source text without the
+ /// client having to reverse-engineer the original text from the HTML
+ /// content.
pub text: Option<String>,
/// Whether the application client has favourited the status.
pub favourited: Option<bool>,