[−][src]Struct sentry_types::protocol::v7::Values
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]
impl<T> DerefMut for Values<T>
[src]
impl<'de, T> Deserialize<'de> for Values<T> where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<T> Extend<T> for Values<T>
[src]
fn extend<I>(&mut self, iter: I) where
I: IntoIterator<Item = T>,
[src]
I: IntoIterator<Item = T>,
fn extend_one(&mut self, item: A)
[src]
fn extend_reserve(&mut self, additional: usize)
[src]
impl<T> From<Vec<T>> for Values<T>
[src]
impl<T> FromIterator<T> for Values<T>
[src]
fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self
[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?
fn into_iter(self) -> Self::IntoIter
[src]
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?
fn into_iter(self) -> Self::IntoIter
[src]
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?
fn into_iter(self) -> Self::IntoIter
[src]
impl<T: PartialEq> PartialEq<Values<T>> for Values<T>
[src]
impl<T> Serialize for Values<T> where
T: Serialize,
[src]
T: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<T> StructuralPartialEq for Values<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Values<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Values<T> where
T: Send,
T: Send,
impl<T> Sync for Values<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Values<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Values<T> where
T: UnwindSafe,
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,
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<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
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?
fn into_iter(self) -> I
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,