pub struct MovieQuery {
pub person: Option<String>,
pub role: Option<PersonType>,
pub after: Option<i64>,
pub in_digital: Option<bool>,
pub watched: Option<bool>,
pub sort: RsMovieSort,
pub order: Option<SqlOrder>,
pub limit: Option<u32>,
pub offset: Option<u32>,
}Expand description
Filter of a movie list (GET /libraries/:id/movies). Its fields keep their snake_case names in JSON.
Fields§
§person: Option<String>§role: Option<PersonType>§after: Option<i64>Only movies modified strictly after this time, in unix milliseconds.
in_digital: Option<bool>§watched: Option<bool>§sort: RsMovieSort§order: Option<SqlOrder>§limit: Option<u32>§offset: Option<u32>Implementations§
Source§impl MovieQuery
impl MovieQuery
pub fn new_empty() -> MovieQuery
pub fn from_after(after: i64) -> MovieQuery
Trait Implementations§
Source§impl Clone for MovieQuery
impl Clone for MovieQuery
Source§fn clone(&self) -> MovieQuery
fn clone(&self) -> MovieQuery
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 MovieQuery
impl Debug for MovieQuery
Source§impl Default for MovieQuery
impl Default for MovieQuery
Source§fn default() -> MovieQuery
fn default() -> MovieQuery
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MovieQuery
impl<'de> Deserialize<'de> for MovieQuery
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MovieQuery, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MovieQuery, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MovieQuery
impl PartialEq for MovieQuery
Source§impl Serialize for MovieQuery
impl Serialize for MovieQuery
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 MovieQuery
Auto Trait Implementations§
impl Forget for MovieQuery
impl Freeze for MovieQuery
impl Move for MovieQuery
impl RefUnwindSafe for MovieQuery
impl Send for MovieQuerywhere
RawVecInner: Send,
impl Sync for MovieQuerywhere
RawVecInner: Sync,
impl Unpin for MovieQuery
impl UnsafeUnpin for MovieQuery
impl UnwindSafe for MovieQuerywhere
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