[−][src]Struct onedrive_api::option::CollectionOption
Option for GET-like requests for a collection of resource objects.
Implementations
impl<Field: ResourceField> CollectionOption<Field>[src]
pub fn new() -> Self[src]
Create an empty (default) option.
pub fn if_match(mut self: Self, tag: &Tag) -> Self[src]
pub fn if_none_match(mut self: Self, tag: &Tag) -> Self[src]
pub fn select(mut self: Self, fields: &[Field]) -> Self[src]
Select only some fields of the resource object.
See documentation of module onedrive_api::resource for more details.
See also
pub fn expand(
mut self: Self,
field: Field,
select_children: Option<&[&str]>
) -> Self[src]
mut self: 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
pub fn order_by(mut self: Self, field: Field, order: Order) -> Self[src]
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(mut self: 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(mut self: Self, get_count: bool) -> Self[src]
Specify to get the number of all items.
Note
If called more than once, only the last call make sense.
Note that Track Changes API does not support this. Setting it in like
track_changes_from_initial_with_option will cause a panic.
See also
Trait Implementations
impl<Field: Debug> Debug for CollectionOption<Field>[src]
impl<Field: ResourceField> Default for CollectionOption<Field>[src]
Auto Trait Implementations
impl<Field> !RefUnwindSafe for CollectionOption<Field>[src]
impl<Field> Send for CollectionOption<Field>[src]
impl<Field> Sync for CollectionOption<Field>[src]
impl<Field> !Unpin for CollectionOption<Field>[src]
impl<Field> !UnwindSafe for CollectionOption<Field>[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,