pub struct EpisodeQuery {
pub serie_ref: Option<String>,
pub season: Option<u32>,
pub not_seasons: Vec<u32>,
pub after: Option<i64>,
pub aired_before: Option<i64>,
pub aired_after: Option<i64>,
pub sorts: Vec<RsSortOrder>,
pub limit: Option<u32>,
pub offset: Option<u32>,
}Expand description
Filter of an episode list (GET /libraries/:id/episodes).
Fields§
§serie_ref: Option<String>§season: Option<u32>§not_seasons: Vec<u32>§after: Option<i64>Only episodes modified strictly after this time, in unix milliseconds.
aired_before: Option<i64>§aired_after: Option<i64>§sorts: Vec<RsSortOrder>§limit: Option<u32>§offset: Option<u32>Implementations§
Source§impl EpisodeQuery
impl EpisodeQuery
pub fn new_empty() -> EpisodeQuery
pub fn from_after(after: i64) -> EpisodeQuery
Sourcepub fn limit_or_default(&self) -> u32
pub fn limit_or_default(&self) -> u32
The page size, 200 when unset.
Trait Implementations§
Source§impl Clone for EpisodeQuery
impl Clone for EpisodeQuery
Source§impl Debug for EpisodeQuery
impl Debug for EpisodeQuery
Source§impl Default for EpisodeQuery
impl Default for EpisodeQuery
Source§impl<'de> Deserialize<'de> for EpisodeQuery
impl<'de> Deserialize<'de> for EpisodeQuery
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for EpisodeQuery
impl PartialEq for EpisodeQuery
Source§impl Serialize for EpisodeQuery
impl Serialize for EpisodeQuery
impl StructuralPartialEq for EpisodeQuery
Auto Trait Implementations§
impl Forget for EpisodeQuery
impl Freeze for EpisodeQuerywhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<u32>: Freeze,
PhantomData<RsSortOrder>: Freeze,
impl Move for EpisodeQuery
impl RefUnwindSafe for EpisodeQuery
impl Send for EpisodeQuerywhere
RawVecInner: Send,
impl Sync for EpisodeQuerywhere
RawVecInner: Sync,
impl Unpin for EpisodeQuery
impl UnsafeUnpin for EpisodeQuerywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<u32>: UnsafeUnpin,
PhantomData<RsSortOrder>: UnsafeUnpin,
impl UnwindSafe for EpisodeQuerywhere
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