pub struct PlaylistShare {
pub user_id: String,
pub can_edit: bool,
pub display_name: Option<String>,
pub kind: Option<UserKind>,
}Expand description
One user a playlist is shared with.
Fields§
§user_id: StringAs WhoAmI gives it: local:<uuid>, or portable: and 64 hex
digits.
can_edit: boolThey may add, remove and move its entries; never rename it, change its kinds or sharing, or delete it.
display_name: Option<String>What they are shown as; None for someone no longer here (shown
by user_id). Read by no request: a share is named by user_id
alone, and a client sends null.
kind: Option<UserKind>Whose account they are. Read by no request: a client sends null.
Implementations§
Trait 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