User

Struct User 

Source
pub struct User {
Show 39 fields pub id: Id<User>, pub username: String, pub name: Option<String>, pub url: Option<Url>, pub avatar_url: Option<Url>, pub avatar_blurhash: Option<String>, pub banner_url: Option<Url>, pub banner_blurhash: Option<String>, pub emojis: Option<Vec<UserEmoji>>, pub host: Option<String>, pub description: Option<String>, pub birthday: Option<String>, pub created_at: Option<DateTime<Utc>>, pub updated_at: Option<DateTime<Utc>>, pub location: Option<String>, pub followers_count: Option<u64>, pub following_count: Option<u64>, pub notes_count: Option<u64>, pub is_bot: bool, pub pinned_note_ids: Option<Vec<Id<Note>>>, pub pinned_notes: Option<Vec<Note>>, pub pinned_page_id: Option<Id<Page>>, pub pinned_page: Option<Page>, pub is_cat: bool, pub is_admin: bool, pub is_moderator: bool, pub is_locked: Option<bool>, pub is_silenced: Option<bool>, pub is_suspended: Option<bool>, pub is_explorable: Option<bool>, pub has_unread_specified_notes: Option<bool>, pub has_unread_mentions: Option<bool>, pub has_unread_channel: Option<bool>, pub two_factor_enabled: Option<bool>, pub use_password_less_login: Option<bool>, pub security_keys: Option<bool>, pub fields: Option<Vec<UserField>>, pub instance: Option<UserInstance>, pub no_crawle: Option<bool>,
}

Fields§

§id: Id<User>§username: String§name: Option<String>§url: Option<Url>§avatar_url: Option<Url>§avatar_blurhash: Option<String>
Available on crate feature 12-42-0 only.
§banner_url: Option<Url>§banner_blurhash: Option<String>
Available on crate feature 12-42-0 only.
§emojis: Option<Vec<UserEmoji>>§host: Option<String>§description: Option<String>§birthday: Option<String>§created_at: Option<DateTime<Utc>>§updated_at: Option<DateTime<Utc>>§location: Option<String>§followers_count: Option<u64>§following_count: Option<u64>§notes_count: Option<u64>§is_bot: bool§pinned_note_ids: Option<Vec<Id<Note>>>§pinned_notes: Option<Vec<Note>>§pinned_page_id: Option<Id<Page>>§pinned_page: Option<Page>§is_cat: bool§is_admin: bool§is_moderator: bool§is_locked: Option<bool>§is_silenced: Option<bool>§is_suspended: Option<bool>§is_explorable: Option<bool>
Available on crate feature 12-63-0 only.
§has_unread_specified_notes: Option<bool>§has_unread_mentions: Option<bool>§has_unread_channel: Option<bool>§two_factor_enabled: Option<bool>§use_password_less_login: Option<bool>§security_keys: Option<bool>§fields: Option<Vec<UserField>>§instance: Option<UserInstance>
Available on crate feature 12-51-0 only.
§no_crawle: Option<bool>
Available on crate feature 12-60-0 only.

Trait Implementations§

Source§

impl Clone for User

Source§

fn clone(&self) -> User

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for User

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for User

Source§

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 Entity for User

Source§

fn id(&self) -> Id<User>

Gets the ID.
Source§

impl PaginationItem for User

Source§

type Id = Id<User>

The ID type.
Source§

fn item_id(&self) -> Id<User>

Extracts an ID from the item.
Source§

impl Serialize for User

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl Freeze for User

§

impl RefUnwindSafe for User

§

impl Send for User

§

impl Sync for User

§

impl Unpin for User

§

impl UnwindSafe for User

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,