pub struct PersonForAdd {Show 17 fields
pub name: String,
pub socials: Option<Vec<RsLink>>,
pub kind: Option<PersonType>,
pub alt: Option<Vec<String>>,
pub portrait: Option<String>,
pub params: Option<Value>,
pub birthday: Option<i64>,
pub generated: bool,
pub imdb: Option<String>,
pub slug: Option<String>,
pub tmdb: Option<u64>,
pub trakt: Option<u64>,
pub death: Option<i64>,
pub gender: Option<Gender>,
pub country: Option<String>,
pub bio: Option<String>,
pub otherids: Option<OtherIds>,
}Expand description
A person to create (POST /libraries/:id/people).
Fields§
§name: String§kind: Option<PersonType>§alt: Option<Vec<String>>§portrait: Option<String>§params: Option<Value>§birthday: Option<i64>§generated: bool§imdb: Option<String>§slug: Option<String>§tmdb: Option<u64>§trakt: Option<u64>§death: Option<i64>§gender: Option<Gender>§country: Option<String>§bio: Option<String>§otherids: Option<OtherIds>Trait Implementations§
Source§impl Clone for PersonForAdd
impl Clone for PersonForAdd
Source§fn clone(&self) -> PersonForAdd
fn clone(&self) -> PersonForAdd
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PersonForAdd
impl Debug for PersonForAdd
Source§impl Default for PersonForAdd
impl Default for PersonForAdd
Source§fn default() -> PersonForAdd
fn default() -> PersonForAdd
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PersonForAdd
impl<'de> Deserialize<'de> for PersonForAdd
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PersonForAdd, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PersonForAdd, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for PersonForAdd
impl Serialize for PersonForAdd
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Forget for PersonForAdd
impl Freeze for PersonForAddwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<RsLink>: Freeze,
PhantomData<String>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for PersonForAdd
impl RefUnwindSafe for PersonForAdd
impl Send for PersonForAdd
impl Sync for PersonForAdd
impl Unpin for PersonForAdd
impl UnsafeUnpin for PersonForAddwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<RsLink>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for PersonForAdd
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