[−][src]Struct onedrive_api::query_option::CollectionOption
Option for the request to a collection of resource objects.
Methods
impl<T> CollectionOption<T>[src]
pub fn new() -> Self[src]
Create an empty (default) option.
pub fn select(self, fields: &[&dyn ResourceFieldOf<T>]) -> Self[src]
pub fn expand<Field: ResourceFieldTypeOf<T>>(
self,
field: Field,
select_children: Option<&[&dyn ResourceFieldOf<Field>]>
) -> Self[src]
self,
field: Field,
select_children: Option<&[&dyn ResourceFieldOf<Field>]>
) -> Self
pub fn order_by<Field: ResourceFieldOf<T>>(
self,
field: Field,
order: Order
) -> Self[src]
self,
field: Field,
order: Order
) -> Self
Specify the sort order of the items responsed.
Note
If called more than once, only the last call make sense.
See also
pub fn page_size(self, size: usize) -> Self[src]
Specify the number of items per page.
Note
If called more than once, only the last call make sense.
See also
pub fn get_count(self, get_count: bool) -> Self[src]
Trait Implementations
impl<T> Default for CollectionOption<T>[src]
impl<T: Debug> Debug for CollectionOption<T>[src]
Auto Trait Implementations
impl<T> !Send for CollectionOption<T>
impl<T> !Sync for CollectionOption<T>
Blanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> From for T[src]
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,