pub struct ShareCandidate {
pub user_id: String,
pub display_name: String,
pub username: Option<String>,
pub kind: UserKind,
}Expand description
Someone a playlist can be shared with (ListShareCandidates): an
enabled account here, or a portable user granted access.
Fields§
§user_id: StringAs PlaylistShare::user_id takes it.
display_name: StringWhat they are shown as: an account’s display name, else its username; a portable user’s name, else their fingerprint.
username: Option<String>An account’s username; None for a portable user, who has none
here.
kind: UserKindTrait Implementations§
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§
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