pub struct CollectionOption<Field> { /* private fields */ }Expand description
Option for GET-like requests for a collection of resource objects.
Implementations§
Source§impl<Field: ResourceField> CollectionOption<Field>
impl<Field: ResourceField> CollectionOption<Field>
Sourcepub fn if_none_match(self, tag: &Tag) -> Self
pub fn if_none_match(self, tag: &Tag) -> Self
Sourcepub fn select(self, fields: &[Field]) -> Self
pub fn select(self, fields: &[Field]) -> Self
Select only some fields of the resource object.
See documentation of module onedrive_api::resource for more details.
§See also
Sourcepub fn expand(self, field: Field, select_children: Option<&[&str]>) -> Self
pub fn expand(self, field: Field, select_children: Option<&[&str]>) -> Self
Expand a field of the resource object.
See documentation of module onedrive_api::resource for more details.
§See also
Sourcepub fn order_by(self, field: Field, order: Order) -> Self
pub fn order_by(self, field: Field, order: Order) -> Self
Sourcepub fn page_size(self, size: usize) -> Self
pub fn page_size(self, size: usize) -> Self
Trait Implementations§
Source§impl<Field: Clone> Clone for CollectionOption<Field>
impl<Field: Clone> Clone for CollectionOption<Field>
Source§fn clone(&self) -> CollectionOption<Field>
fn clone(&self) -> CollectionOption<Field>
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<Field: Debug> Debug for CollectionOption<Field>
impl<Field: Debug> Debug for CollectionOption<Field>
Source§impl<Field: ResourceField> Default for CollectionOption<Field>
impl<Field: ResourceField> Default for CollectionOption<Field>
Source§impl<Field: PartialEq> PartialEq for CollectionOption<Field>
impl<Field: PartialEq> PartialEq for CollectionOption<Field>
impl<Field: Eq> Eq for CollectionOption<Field>
impl<Field> StructuralPartialEq for CollectionOption<Field>
Auto Trait Implementations§
impl<Field> Freeze for CollectionOption<Field>
impl<Field> !RefUnwindSafe for CollectionOption<Field>
impl<Field> Send for CollectionOption<Field>
impl<Field> Sync for CollectionOption<Field>
impl<Field> !Unpin for CollectionOption<Field>
impl<Field> !UnwindSafe for CollectionOption<Field>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.