pub struct MediaForUpdate {Show 54 fields
pub name: Option<String>,
pub description: Option<String>,
pub mimetype: Option<String>,
pub kind: Option<FileType>,
pub size: Option<u64>,
pub md5: Option<String>,
pub modified: Option<i64>,
pub created: Option<i64>,
pub width: Option<u32>,
pub height: Option<u32>,
pub orientation: Option<u8>,
pub color_space: Option<String>,
pub icc: Option<String>,
pub mp: Option<u32>,
pub vcodecs: Option<Vec<String>>,
pub acodecs: Option<Vec<String>>,
pub fps: Option<f64>,
pub bitrate: Option<u64>,
pub focal: Option<u64>,
pub iso: Option<u64>,
pub model: Option<String>,
pub sspeed: Option<String>,
pub f_number: Option<f64>,
pub pages: Option<usize>,
pub duration: Option<u64>,
pub progress: Option<usize>,
pub add_tags: Option<Vec<MediaItemReference>>,
pub remove_tags: Option<Vec<String>>,
pub tags_lookup: Option<Vec<String>>,
pub add_series: Option<Vec<FileEpisode>>,
pub remove_series: Option<Vec<FileEpisode>>,
pub series_lookup: Option<Vec<String>>,
pub season: Option<u32>,
pub episode: Option<u32>,
pub add_people: Option<Vec<MediaItemReference>>,
pub remove_people: Option<Vec<String>>,
pub people_lookup: Option<Vec<String>>,
pub long: Option<f64>,
pub lat: Option<f64>,
pub gps: Option<String>,
pub origin: Option<RsLink>,
pub origin_url: Option<String>,
pub ignore_origin_duplicate: bool,
pub movie: Option<String>,
pub book: Option<String>,
pub lang: Option<String>,
pub rating: Option<u16>,
pub thumbsize: Option<usize>,
pub iv: Option<String>,
pub uploader: Option<String>,
pub uploadkey: Option<String>,
pub upload_id: Option<String>,
pub original_hash: Option<String>,
pub original_id: Option<String>,
}Fields§
§name: Option<String>§description: Option<String>§mimetype: Option<String>§kind: Option<FileType>§size: Option<u64>§md5: Option<String>§modified: Option<i64>§created: Option<i64>§width: Option<u32>§height: Option<u32>§orientation: Option<u8>§color_space: Option<String>§icc: Option<String>§mp: Option<u32>§vcodecs: Option<Vec<String>>§acodecs: Option<Vec<String>>§fps: Option<f64>§bitrate: Option<u64>§focal: Option<u64>§iso: Option<u64>§model: Option<String>§sspeed: Option<String>§f_number: Option<f64>§pages: Option<usize>§duration: Option<u64>§progress: Option<usize>§add_series: Option<Vec<FileEpisode>>§remove_series: Option<Vec<FileEpisode>>§series_lookup: Option<Vec<String>>§season: Option<u32>§episode: Option<u32>§add_people: Option<Vec<MediaItemReference>>§remove_people: Option<Vec<String>>§people_lookup: Option<Vec<String>>§long: Option<f64>§lat: Option<f64>§gps: Option<String>§origin: Option<RsLink>§origin_url: Option<String>§ignore_origin_duplicate: bool§movie: Option<String>§book: Option<String>§lang: Option<String>§rating: Option<u16>§thumbsize: Option<usize>§iv: Option<String>§uploader: Option<String>§uploadkey: Option<String>§upload_id: Option<String>§original_hash: Option<String>§original_id: Option<String>Implementations§
Source§impl MediaForUpdate
impl MediaForUpdate
Sourcepub fn merge_from(&mut self, patch: MediaForUpdate)
pub fn merge_from(&mut self, patch: MediaForUpdate)
Merge patch into self.
Semantics:
- For most
Option<T>fields: overwrite only whenpatch.fieldisSome. - For “list-like update” fields (
add_*,remove_*,*_lookup): append vectors. - For
ignore_origin_duplicate(bool): OR (once true, stays true).
Sourcepub fn merged(self, patch: MediaForUpdate) -> MediaForUpdate
pub fn merged(self, patch: MediaForUpdate) -> MediaForUpdate
Convenience: returns a merged value without mutating the original.
Trait Implementations§
Source§impl Clone for MediaForUpdate
impl Clone for MediaForUpdate
Source§fn clone(&self) -> MediaForUpdate
fn clone(&self) -> MediaForUpdate
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 MediaForUpdate
impl Debug for MediaForUpdate
Source§impl Default for MediaForUpdate
impl Default for MediaForUpdate
Source§fn default() -> MediaForUpdate
fn default() -> MediaForUpdate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MediaForUpdate
impl<'de> Deserialize<'de> for MediaForUpdate
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MediaForUpdate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MediaForUpdate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Media> for MediaForUpdate
impl From<Media> for MediaForUpdate
Source§fn from(value: Media) -> MediaForUpdate
fn from(value: Media) -> MediaForUpdate
Converts to this type from the input type.
Source§impl From<RsRequest> for MediaForUpdate
impl From<RsRequest> for MediaForUpdate
Source§fn from(value: RsRequest) -> MediaForUpdate
fn from(value: RsRequest) -> MediaForUpdate
Converts to this type from the input type.
Source§impl PartialEq for MediaForUpdate
impl PartialEq for MediaForUpdate
Source§impl Serialize for MediaForUpdate
impl Serialize for MediaForUpdate
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 MediaForUpdate
Auto Trait Implementations§
impl Forget for MediaForUpdate
impl Freeze for MediaForUpdatewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<MediaItemReference>: Freeze,
PhantomData<FileEpisode>: Freeze,
impl Move for MediaForUpdate
impl RefUnwindSafe for MediaForUpdate
impl Send for MediaForUpdatewhere
RawVecInner: Send,
impl Sync for MediaForUpdatewhere
RawVecInner: Sync,
impl Unpin for MediaForUpdate
impl UnsafeUnpin for MediaForUpdatewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<MediaItemReference>: UnsafeUnpin,
PhantomData<FileEpisode>: UnsafeUnpin,
impl UnwindSafe for MediaForUpdatewhere
RawVecInner: UnwindSafe,
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