Struct twitch_api::helix::users::get_users_follows::FollowRelationship
source · [−]#[non_exhaustive]pub struct FollowRelationship {
pub followed_at: Timestamp,
pub from_id: UserId,
pub from_name: DisplayName,
pub from_login: UserName,
pub to_id: UserId,
pub to_name: DisplayName,
pub to_login: UserName,
}
Available on crate feature
helix
only.Expand description
Describes a follow relationship
Used in UsersFollows
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.followed_at: Timestamp
Date and time when the from_id user followed the to_id user.
from_id: UserId
ID of the user following the to_id user.
from_name: DisplayName
Display name corresponding to from_id.
from_login: UserName
Login of the user following the to_id user.
to_id: UserId
ID of the user being followed by the from_id user.
to_name: DisplayName
Display name corresponding to to_id.
to_login: UserName
Login of the user being followed by the from_id user.
Trait Implementations
sourceimpl Clone for FollowRelationship
impl Clone for FollowRelationship
sourcefn clone(&self) -> FollowRelationship
fn clone(&self) -> FollowRelationship
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for FollowRelationship
impl Debug for FollowRelationship
sourceimpl<'de> Deserialize<'de> for FollowRelationship
impl<'de> Deserialize<'de> for FollowRelationship
sourcefn 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
sourceimpl PartialEq<FollowRelationship> for FollowRelationship
impl PartialEq<FollowRelationship> for FollowRelationship
sourcefn eq(&self, other: &FollowRelationship) -> bool
fn eq(&self, other: &FollowRelationship) -> bool
sourceimpl Serialize for FollowRelationship
impl Serialize for FollowRelationship
impl Eq for FollowRelationship
impl StructuralEq for FollowRelationship
impl StructuralPartialEq for FollowRelationship
Auto Trait Implementations
impl RefUnwindSafe for FollowRelationship
impl Send for FollowRelationship
impl Sync for FollowRelationship
impl Unpin for FollowRelationship
impl UnwindSafe for FollowRelationship
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.