[−][src]Struct elefren::entities::relationship::Relationship
A struct containing information about a relationship with another account.
Fields
id: String
Target account id
following: bool
Whether the application client follows the account.
followed_by: bool
Whether the account follows the application client.
blocking: bool
Whether the application client blocks the account.
muting: bool
Whether the application client blocks the account.
requested: bool
Whether the application client has requested to follow the account.
muting_notifications: bool
Whether the user is also muting notifications
domain_blocking: bool
Whether the user is currently blocking the accounts's domain
showing_reblogs: bool
Whether the user's reblogs will show up in the home timeline
endorsed: Option<bool>
Whether the user is currently endorsing the account
This field is not techincally nullable with mastodon >= 2.5.0, but
making it Option<bool>
here means we shouldn't get deser errors when
making calls to pleroma or mastodon<2.5.0 instances
Trait Implementations
impl PartialEq<Relationship> for Relationship
[src]
fn eq(&self, other: &Relationship) -> bool
[src]
fn ne(&self, other: &Relationship) -> bool
[src]
impl Clone for Relationship
[src]
fn clone(&self) -> Relationship
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Relationship
[src]
impl<'de> Deserialize<'de> for Relationship
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for Relationship
impl Sync for Relationship
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Erased for T
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,