pub struct Friend {Show 15 fields
pub id: u64,
pub uuid: String,
pub title: String,
pub username: Option<String>,
pub email: Option<String>,
pub restricted: bool,
pub restriction_profile: Option<RestrictionProfile>,
pub friendly_name: Option<String>,
pub friendship_created_at: Option<OffsetDateTime>,
pub thumb: Uri,
pub home: bool,
pub status: Option<InviteStatus>,
pub sharing_settings: Option<Settings>,
pub shared_servers: Vec<SharedServer>,
pub shared_sources: Vec<String>,
/* private fields */
}
Fields§
§id: u64
The global Plex.tv ID of the friend
uuid: String
Plex.tv user’s uuid ??
title: String
How the user should be displayed in the interface. Seems to be generated on the backed from either username or friendly_name.
username: Option<String>
Non-managed user’s username
email: Option<String>
Non-managed user’s email
restricted: bool
Is it a managed user?
restriction_profile: Option<RestrictionProfile>
Restrictions on the managed user (if any)
friendly_name: Option<String>
Managed user’s username
friendship_created_at: Option<OffsetDateTime>
§thumb: Uri
User’s avatar picture URL
home: bool
Does the user has access to Plex Home?
status: Option<InviteStatus>
Status of the friendship
sharing_settings: Option<Settings>
Server sharing preferences
List of the shared servers
No idea what this is
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Friend
impl<'de> Deserialize<'de> for Friend
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
Auto Trait Implementations§
impl !Freeze for Friend
impl !RefUnwindSafe for Friend
impl Send for Friend
impl Sync for Friend
impl Unpin for Friend
impl !UnwindSafe for Friend
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