#[non_exhaustive]pub enum EvidenceValue {
Boolean(bool),
Signed(i64),
Unsigned(u64),
Text(String),
TextList(Vec<String>),
}Expand description
Typed value carried by evidence and claims.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Boolean(bool)
Boolean signal.
Signed(i64)
Signed integer measurement.
Unsigned(u64)
Unsigned integer measurement.
Text(String)
UTF-8 text value.
TextList(Vec<String>)
Ordered collection of UTF-8 text values.
Trait Implementations§
Source§impl Clone for EvidenceValue
impl Clone for EvidenceValue
Source§fn clone(&self) -> EvidenceValue
fn clone(&self) -> EvidenceValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EvidenceValue
impl Debug for EvidenceValue
Source§impl<'de> Deserialize<'de> for EvidenceValue
impl<'de> Deserialize<'de> for EvidenceValue
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EvidenceValue, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EvidenceValue, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for EvidenceValue
Source§impl From<ApiResponseFormat> for EvidenceValue
impl From<ApiResponseFormat> for EvidenceValue
Source§fn from(value: ApiResponseFormat) -> EvidenceValue
fn from(value: ApiResponseFormat) -> EvidenceValue
Converts to this type from the input type.
Source§impl From<ApiSurfaceKind> for EvidenceValue
impl From<ApiSurfaceKind> for EvidenceValue
Source§fn from(value: ApiSurfaceKind) -> EvidenceValue
fn from(value: ApiSurfaceKind) -> EvidenceValue
Converts to this type from the input type.
Source§impl From<ApiVisibilityBoundaryKind> for EvidenceValue
impl From<ApiVisibilityBoundaryKind> for EvidenceValue
Source§fn from(value: ApiVisibilityBoundaryKind) -> EvidenceValue
fn from(value: ApiVisibilityBoundaryKind) -> EvidenceValue
Converts to this type from the input type.
Source§impl From<ApiVisibilityDimension> for EvidenceValue
impl From<ApiVisibilityDimension> for EvidenceValue
Source§fn from(value: ApiVisibilityDimension) -> EvidenceValue
fn from(value: ApiVisibilityDimension) -> EvidenceValue
Converts to this type from the input type.
Source§impl PartialEq for EvidenceValue
impl PartialEq for EvidenceValue
Source§impl Serialize for EvidenceValue
impl Serialize for EvidenceValue
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for EvidenceValue
Auto Trait Implementations§
impl Freeze for EvidenceValue
impl RefUnwindSafe for EvidenceValue
impl Send for EvidenceValue
impl Sync for EvidenceValue
impl Unpin for EvidenceValue
impl UnsafeUnpin for EvidenceValue
impl UnwindSafe for EvidenceValue
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more