pub struct MovieForUpdate {Show 25 fields
pub add_tags: Option<Vec<MediaItemReference>>,
pub remove_tags: Option<Vec<String>>,
pub add_series: Option<Vec<FileEpisode>>,
pub remove_series: Option<Vec<FileEpisode>>,
pub name: Option<String>,
pub kind: Option<Value>,
pub year: Option<u32>,
pub airdate: Option<i64>,
pub digitalairdate: Option<i64>,
pub duration: Option<u32>,
pub overview: Option<String>,
pub country: Option<String>,
pub status: Option<MovieStatus>,
pub imdb: Option<String>,
pub slug: Option<String>,
pub tmdb: Option<u64>,
pub trakt: Option<u64>,
pub otherids: Option<String>,
pub lang: Option<String>,
pub original: Option<String>,
pub imdb_rating: Option<f32>,
pub imdb_votes: Option<u64>,
pub trakt_rating: Option<f32>,
pub trakt_votes: Option<u32>,
pub trailer: Option<RsLink>,
}Fields§
§add_series: Option<Vec<FileEpisode>>§remove_series: Option<Vec<FileEpisode>>§name: Option<String>§kind: Option<Value>§year: Option<u32>§airdate: Option<i64>§digitalairdate: Option<i64>§duration: Option<u32>§overview: Option<String>§country: Option<String>§status: Option<MovieStatus>§imdb: Option<String>§slug: Option<String>§tmdb: Option<u64>§trakt: Option<u64>§otherids: Option<String>§lang: Option<String>§original: Option<String>§imdb_rating: Option<f32>§imdb_votes: Option<u64>§trakt_rating: Option<f32>§trakt_votes: Option<u32>§trailer: Option<RsLink>Implementations§
Source§impl MovieForUpdate
impl MovieForUpdate
pub fn from_refresh( movie: &Movie, new_movie: Movie, ) -> Result<MovieForUpdate, Error>
pub fn has_update(&self) -> bool
Trait Implementations§
Source§impl Clone for MovieForUpdate
impl Clone for MovieForUpdate
Source§fn clone(&self) -> MovieForUpdate
fn clone(&self) -> MovieForUpdate
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 MovieForUpdate
impl Debug for MovieForUpdate
Source§impl Default for MovieForUpdate
impl Default for MovieForUpdate
Source§fn default() -> MovieForUpdate
fn default() -> MovieForUpdate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MovieForUpdate
impl<'de> Deserialize<'de> for MovieForUpdate
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MovieForUpdate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MovieForUpdate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MovieForUpdate
impl PartialEq for MovieForUpdate
Source§impl Serialize for MovieForUpdate
impl Serialize for MovieForUpdate
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
impl StructuralPartialEq for MovieForUpdate
Auto Trait Implementations§
impl Forget for MovieForUpdate
impl Freeze for MovieForUpdatewhere
*const u8 is !null: Freeze,
PhantomData<MediaItemReference>: Freeze,
PhantomData<String>: Freeze,
PhantomData<FileEpisode>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for MovieForUpdate
impl RefUnwindSafe for MovieForUpdate
impl Send for MovieForUpdate
impl Sync for MovieForUpdate
impl Unpin for MovieForUpdate
impl UnsafeUnpin for MovieForUpdatewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<MediaItemReference>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<FileEpisode>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for MovieForUpdate
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