pub struct CastMember {
pub id: PersonId,
pub name: String,
pub role: PersonRole,
pub character: Option<String>,
pub photo: Option<ArtworkId>,
}Expand description
Someone in a movie’s, show’s or episode’s credits: an actor, with the part they play, or a director.
An item’s cast is in the catalog’s billing order, actors first, then
directors. Only the item’s own read (Item) has it; it is empty in
listings, search and the home rows, where Plex gives names without
the ids a person is listed by.
Fields§
§id: PersonIdThe id a person search gives them: their items are listed with
PersonItems, as a found person’s are.
name: String§role: PersonRole§character: Option<String>The part an actor plays (“Ellen Ripley”), as the catalog has it;
None for a director, and for an actor where it does not say.
photo: Option<ArtworkId>Their portrait, fetched through the client protocol as any
artwork is; None where the catalog has none.
Trait Implementations§
Source§impl Clone for CastMember
impl Clone for CastMember
Source§impl Debug for CastMember
impl Debug for CastMember
Source§impl<'de> Deserialize<'de> for CastMember
impl<'de> Deserialize<'de> for CastMember
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
impl Eq for CastMember
Source§impl PartialEq for CastMember
impl PartialEq for CastMember
Source§impl Serialize for CastMember
impl Serialize for CastMember
impl StructuralPartialEq for CastMember
Auto Trait Implementations§
impl Freeze for CastMember
impl RefUnwindSafe for CastMember
impl Send for CastMember
impl Sync for CastMember
impl Unpin for CastMember
impl UnsafeUnpin for CastMember
impl UnwindSafe for CastMember
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