pub enum PlaylistOwner {
BuiltIn(Builtin),
Yours {
shared_with: usize,
},
SharedWithYou {
owner: Option<String>,
can_edit: bool,
},
ServerWide {
can_edit: bool,
},
}Expand description
Whose a playlist is, as its card says under its name
(PlaylistSummary::facts).
Variants§
BuiltIn(Builtin)
Liked or All, the server’s own.
Yours
The user’s, shared with shared_with people (none: personal).
Fields
Someone else’s, shared with the user: by owner where the server
names them.
ServerWide
Every user’s; can_edit for an admin.
Trait Implementations§
Source§impl Clone for PlaylistOwner
impl Clone for PlaylistOwner
Source§impl Debug for PlaylistOwner
impl Debug for PlaylistOwner
impl Eq for PlaylistOwner
Source§impl PartialEq for PlaylistOwner
impl PartialEq for PlaylistOwner
impl StructuralPartialEq for PlaylistOwner
Auto Trait Implementations§
impl Freeze for PlaylistOwner
impl RefUnwindSafe for PlaylistOwner
impl Send for PlaylistOwner
impl Sync for PlaylistOwner
impl Unpin for PlaylistOwner
impl UnsafeUnpin for PlaylistOwner
impl UnwindSafe for PlaylistOwner
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