[][src]Struct sentry_types::protocol::v7::Values

pub struct Values<T> {
    pub values: Vec<T>,
}

A wrapper type for collections with attached meta data.

The JSON payload can either directly be an array or an object containing a values field and arbitrary other fields. All other fields will be collected into Values::data when deserializing and re-serialized in the same place. The shorthand array notation is always reserialized as object.

Fields

values: Vec<T>

The values of the collection.

Methods

impl<T> Values<T>[src]

pub fn new() -> Values<T>[src]

Creates an empty values struct.

pub fn is_empty(&self) -> bool[src]

Checks whether this struct is empty in both values and data.

Trait Implementations

impl<T> AsRef<[T]> for Values<T>[src]

impl<T: PartialEq> PartialEq<Values<T>> for Values<T>[src]

impl<T: Clone> Clone for Values<T>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a, T> IntoIterator for &'a mut Values<T>[src]

type Item = <&'a mut Vec<T> as IntoIterator>::Item

The type of the elements being iterated over.

type IntoIter = <&'a mut Vec<T> as IntoIterator>::IntoIter

Which kind of iterator are we turning this into?

impl<'a, T> IntoIterator for &'a Values<T>[src]

type Item = <&'a Vec<T> as IntoIterator>::Item

The type of the elements being iterated over.

type IntoIter = <&'a Vec<T> as IntoIterator>::IntoIter

Which kind of iterator are we turning this into?

impl<T> IntoIterator for Values<T>[src]

type Item = <Vec<T> as IntoIterator>::Item

The type of the elements being iterated over.

type IntoIter = <Vec<T> as IntoIterator>::IntoIter

Which kind of iterator are we turning this into?

impl<T> Extend<T> for Values<T>[src]

impl<T> AsMut<Vec<T>> for Values<T>[src]

impl<T> From<Vec<T>> for Values<T>[src]

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

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

impl<T> Deref for Values<T>[src]

type Target = [T]

The resulting type after dereferencing.

impl<T> DerefMut for Values<T>[src]

impl<T> FromIterator<T> for Values<T>[src]

impl<T> Serialize for Values<T> where
    T: Serialize
[src]

impl<'de, T> Deserialize<'de> for Values<T> where
    T: Deserialize<'de>, 
[src]

Auto Trait Implementations

impl<T> Send for Values<T> where
    T: Send

impl<T> Sync for Values<T> where
    T: Sync

Blanket Implementations

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

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 = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> Any for T where
    T: 'static + ?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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]