[][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.

Implementations

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> AsMut<Vec<T>> for Values<T>[src]

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

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

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

impl<T> Default 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<'de, T> Deserialize<'de> for Values<T> where
    T: Deserialize<'de>, 
[src]

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

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

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

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: PartialEq> PartialEq<Values<T>> for Values<T>[src]

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

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

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

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

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

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

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

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

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

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

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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<V, T> VZip<V> for T where
    V: MultiLane<T>,