[−][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.
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: Clone> Clone for Values<T>
[src]
fn clone(&self) -> Values<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T> AsMut<Vec<T>> for Values<T>
[src]
impl<T: PartialEq> PartialEq<Values<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?
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> AsRef<[T]> for Values<T>
[src]
impl<T> From<Vec<T>> for Values<T>
[src]
impl<T> Default for Values<T>
[src]
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>,
impl<T: Debug> Debug for Values<T>
[src]
impl<T> Deref for Values<T>
[src]
impl<T> DerefMut for Values<T>
[src]
impl<T> FromIterator<T> for Values<T>
[src]
fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self
[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<'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>,
Auto Trait Implementations
Blanket Implementations
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, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
try_from
)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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,