[−][src]Struct graph_http::types::Collection
A Collection stores a collection of items returned from the API such as a collection of DriveItem's or User's.
Implementations
impl<T> Collection<T>[src]
pub fn new(
next_link: Option<String>,
delta_link: Option<String>,
context: Option<String>,
value: Option<Vec<T>>
) -> Collection<T>[src]
next_link: Option<String>,
delta_link: Option<String>,
context: Option<String>,
value: Option<Vec<T>>
) -> Collection<T>
pub fn odata_next_link(&self) -> Option<&String>[src]
pub fn odata_delta_link(&self) -> Option<&String>[src]
pub fn odata_context(&self) -> Option<&String>[src]
pub fn index(&self, idx: usize) -> Option<&T>[src]
pub fn add(&mut self, value: T)[src]
pub fn len(&self) -> usize[src]
pub fn is_empty(&self) -> bool[src]
pub fn value(&self) -> Option<&Vec<T>>[src]
pub fn value_mut(&mut self) -> &mut Option<Vec<T>>[src]
pub fn clone_inner(&mut self) -> Vec<T> where
T: Clone, [src]
T: Clone,
pub fn into_inner(self) -> Vec<T>[src]
Trait Implementations
impl<T: Clone> Clone for Collection<T>[src]
pub fn clone(&self) -> Collection<T>[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<T: Debug> Debug for Collection<T>[src]
impl<T: Default> Default for Collection<T>[src]
pub fn default() -> Collection<T>[src]
impl<T> DeltaLink<Collection<T>> for Collection<T>[src]
pub fn delta_link(&self) -> Option<String>[src]
pub fn delta<T: 'static + Send + NextLink>(
&self,
access_token: &str
) -> Option<Receiver<Delta<T>>> where
T: Deserialize<'de>, [src]
&self,
access_token: &str
) -> Option<Receiver<Delta<T>>> where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Collection<T> where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl<T> Eq for Collection<T> where
T: PartialEq, [src]
T: PartialEq,
impl<T> Into<Vec<T, Global>> for Collection<T>[src]
impl<T> IntoIterator for Collection<T> where
T: Clone, [src]
T: Clone,
type Item = T
The type of the elements being iterated over.
type IntoIter = IntoIter<Self::Item>
Which kind of iterator are we turning this into?
pub fn into_iter(self) -> Self::IntoIter[src]
impl<T> MetadataLink<Collection<T>> for Collection<T>[src]
pub fn metadata_link(&self) -> Option<String>[src]
pub fn metadata(&self) -> Option<GraphResult<GraphResponse<Content>>>[src]
impl<T> NextLink<Collection<T>> for Collection<T>[src]
impl<T: PartialEq> PartialEq<Collection<T>> for Collection<T>[src]
pub fn eq(&self, other: &Collection<T>) -> bool[src]
pub fn ne(&self, other: &Collection<T>) -> bool[src]
impl<T> Serialize for Collection<T> where
T: Serialize, [src]
T: Serialize,
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl<T> StructuralPartialEq for Collection<T>[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Collection<T> where
T: RefUnwindSafe, [src]
T: RefUnwindSafe,
impl<T> Send for Collection<T> where
T: Send, [src]
T: Send,
impl<T> Sync for Collection<T> where
T: Sync, [src]
T: Sync,
impl<T> Unpin for Collection<T> where
T: Unpin, [src]
T: Unpin,
impl<T> UnwindSafe for Collection<T> where
T: UnwindSafe, [src]
T: UnwindSafe,
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> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool[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> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
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>,