pub struct PageRequest<K> {
pub key: Option<K>,
pub limit: Option<u32>,
}
Fields§
§key: Option<K>
§limit: Option<u32>
Trait Implementations§
Source§impl<K: Clone> Clone for PageRequest<K>
impl<K: Clone> Clone for PageRequest<K>
Source§fn clone(&self) -> PageRequest<K>
fn clone(&self) -> PageRequest<K>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<K: Debug> Debug for PageRequest<K>
impl<K: Debug> Debug for PageRequest<K>
Source§impl<K> Default for PageRequest<K>
impl<K> Default for PageRequest<K>
Source§impl<'de, K> Deserialize<'de> for PageRequest<K>where
K: Deserialize<'de>,
impl<'de, K> Deserialize<'de> for PageRequest<K>where
K: Deserialize<'de>,
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<K: JsonSchema> JsonSchema for PageRequest<K>
impl<K: JsonSchema> JsonSchema for PageRequest<K>
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§impl<K: PartialEq> PartialEq for PageRequest<K>
impl<K: PartialEq> PartialEq for PageRequest<K>
Source§impl<K> Serialize for PageRequest<K>where
K: Serialize,
impl<K> Serialize for PageRequest<K>where
K: Serialize,
impl<K> StructuralPartialEq for PageRequest<K>
Auto Trait Implementations§
impl<K> Freeze for PageRequest<K>where
K: Freeze,
impl<K> RefUnwindSafe for PageRequest<K>where
K: RefUnwindSafe,
impl<K> Send for PageRequest<K>where
K: Send,
impl<K> Sync for PageRequest<K>where
K: Sync,
impl<K> Unpin for PageRequest<K>where
K: Unpin,
impl<K> UnwindSafe for PageRequest<K>where
K: 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