#[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: TimestampDate and time when the from_id user followed the to_id user.
from_id: UserIdID of the user following the to_id user.
from_name: DisplayNameDisplay name corresponding to from_id.
from_login: UserNameLogin of the user following the to_id user.
to_id: UserIdID of the user being followed by the from_id user.
to_name: DisplayNameDisplay name corresponding to to_id.
to_login: UserNameLogin of the user being followed by the from_id user.
Trait Implementations§
Source§impl Clone for FollowRelationship
impl Clone for FollowRelationship
Source§fn clone(&self) -> FollowRelationship
fn clone(&self) -> FollowRelationship
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FollowRelationship
impl Debug for FollowRelationship
Source§impl<'de> Deserialize<'de> for FollowRelationship
impl<'de> Deserialize<'de> for FollowRelationship
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 PartialEq for FollowRelationship
impl PartialEq for FollowRelationship
Source§impl Serialize for FollowRelationship
impl Serialize for FollowRelationship
impl Eq for FollowRelationship
impl StructuralPartialEq for FollowRelationship
Auto Trait Implementations§
impl Freeze for FollowRelationship
impl RefUnwindSafe for FollowRelationship
impl Send for FollowRelationship
impl Sync for FollowRelationship
impl Unpin for FollowRelationship
impl UnsafeUnpin for FollowRelationship
impl UnwindSafe for FollowRelationship
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