pub struct PersonForUpdate {Show 24 fields
pub name: Option<String>,
pub socials: Option<Vec<RsLink>>,
pub kind: Option<PersonType>,
pub alt: Option<Vec<String>>,
pub add_alts: Option<Vec<String>>,
pub remove_alts: Option<Vec<String>>,
pub add_social_url: Option<String>,
pub add_socials: Option<Vec<RsLink>>,
pub remove_socials: Option<Vec<RsLink>>,
pub portrait: Option<String>,
pub params: Option<Value>,
pub birthday: Option<i64>,
pub generated: Option<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>,
pub add_otherids: Option<Vec<String>>,
pub remove_otherids: Option<Vec<String>>,
}Expand description
Changes to a person (PATCH /libraries/:id/people/:id). Only the set fields change.
Fields§
§name: Option<String>§kind: Option<PersonType>§alt: Option<Vec<String>>§add_alts: Option<Vec<String>>§remove_alts: Option<Vec<String>>§portrait: Option<String>§params: Option<Value>§birthday: Option<i64>§generated: Option<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>§add_otherids: Option<Vec<String>>§remove_otherids: Option<Vec<String>>Trait Implementations§
Source§impl Clone for PersonForUpdate
impl Clone for PersonForUpdate
Source§fn clone(&self) -> PersonForUpdate
fn clone(&self) -> PersonForUpdate
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 PersonForUpdate
impl Debug for PersonForUpdate
Source§impl Default for PersonForUpdate
impl Default for PersonForUpdate
Source§fn default() -> PersonForUpdate
fn default() -> PersonForUpdate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PersonForUpdate
impl<'de> Deserialize<'de> for PersonForUpdate
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PersonForUpdate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PersonForUpdate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for PersonForUpdate
impl Serialize for PersonForUpdate
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 PersonForUpdate
impl Freeze for PersonForUpdatewhere
*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 PersonForUpdate
impl RefUnwindSafe for PersonForUpdate
impl Send for PersonForUpdate
impl Sync for PersonForUpdate
impl Unpin for PersonForUpdate
impl UnsafeUnpin for PersonForUpdatewhere
*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 PersonForUpdate
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