[][src]Struct onedrive_api::query_option::ObjectOption

pub struct ObjectOption<T> { /* fields omitted */ }

Option for a request to resource object.

Methods

impl<T> ObjectOption<T>[src]

pub fn new() -> Self[src]

Create an empty (default) option.

pub fn select(self, fields: &[&dyn ResourceFieldOf<T>]) -> Self[src]

Select only some fields of the resource object.

Note

If called more than once, all fields mentioned will be selected.

See also

Microsoft Docs

pub fn expand<Field: ResourceFieldTypeOf<T>>(
    self,
    field: Field,
    select_children: Option<&[&dyn ResourceFieldOf<Field>]>
) -> Self
[src]

Expand a field of the resource object.

Note

If called more than once, all fields mentioned will be expanded.

See also

Microsoft Docs

Trait Implementations

impl<T> Default for ObjectOption<T>[src]

impl<T: Debug> Debug for ObjectOption<T>[src]

Auto Trait Implementations

impl<T> !Send for ObjectOption<T>

impl<T> !Sync for ObjectOption<T>

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T