pub struct Account {
pub id: Option<String>,
pub name: Option<String>,
pub screen_name: Option<String>,
pub description: Option<String>,
pub avatar: Option<String>,
pub banner: Option<String>,
pub followers_count: Option<i64>,
pub friends_count: Option<i64>,
pub statuses_count: Option<i64>,
pub register_date: Option<String>,
pub verified: Option<bool>,
pub score: Option<f64>,
}Expand description
Account information for followers/friends lists
Fields§
§id: Option<String>User ID
name: Option<String>Display name
screen_name: Option<String>Username/handle (Note: API returns screeName, handling typo)
description: Option<String>Profile description
avatar: Option<String>Avatar URL
Banner URL
followers_count: Option<i64>Followers count (Note: API uses camelCase)
friends_count: Option<i64>Friends/following count
statuses_count: Option<i64>Number of posts
register_date: Option<String>Registration date
verified: Option<bool>Verification status
score: Option<f64>Account score
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Account
impl<'de> Deserialize<'de> for Account
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for Account
impl JsonSchema for Account
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for Account
impl RefUnwindSafe for Account
impl Send for Account
impl Sync for Account
impl Unpin for Account
impl UnwindSafe for Account
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more