#[non_exhaustive]pub enum AttributeValue {
Bool(bool),
I64(i64),
F64(f64),
String(String),
Array(AttributeArray),
}Expand description
Represents a single attribute value, which can be of various types
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.
Bool(bool)
A boolean attribute value.
I64(i64)
A signed 64-bit integer attribute value.
F64(f64)
A 64-bit floating point attribute value
String(String)
A string attribute value.
Array(AttributeArray)
An array of attribute values.
Trait Implementations§
Source§impl Clone for AttributeValue
impl Clone for AttributeValue
Source§fn clone(&self) -> AttributeValue
fn clone(&self) -> AttributeValue
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 AttributeValue
impl Debug for AttributeValue
Source§impl From<&Url> for AttributeValue
impl From<&Url> for AttributeValue
Source§fn from(value: &Url) -> AttributeValue
fn from(value: &Url) -> AttributeValue
Converts to this type from the input type.
Source§impl From<&str> for AttributeValue
impl From<&str> for AttributeValue
Source§fn from(value: &str) -> AttributeValue
fn from(value: &str) -> AttributeValue
Converts to this type from the input type.
Source§impl From<String> for AttributeValue
impl From<String> for AttributeValue
Source§fn from(value: String) -> AttributeValue
fn from(value: String) -> AttributeValue
Converts to this type from the input type.
Source§impl From<Url> for AttributeValue
impl From<Url> for AttributeValue
Source§fn from(value: Url) -> AttributeValue
fn from(value: Url) -> AttributeValue
Converts to this type from the input type.
Source§impl From<bool> for AttributeValue
impl From<bool> for AttributeValue
Source§fn from(value: bool) -> AttributeValue
fn from(value: bool) -> AttributeValue
Converts to this type from the input type.
Source§impl From<f64> for AttributeValue
impl From<f64> for AttributeValue
Source§fn from(value: f64) -> AttributeValue
fn from(value: f64) -> AttributeValue
Converts to this type from the input type.
Source§impl From<i32> for AttributeValue
impl From<i32> for AttributeValue
Source§fn from(value: i32) -> AttributeValue
fn from(value: i32) -> AttributeValue
Converts to this type from the input type.
Source§impl From<i64> for AttributeValue
impl From<i64> for AttributeValue
Source§fn from(value: i64) -> AttributeValue
fn from(value: i64) -> AttributeValue
Converts to this type from the input type.
Source§impl From<u16> for AttributeValue
impl From<u16> for AttributeValue
Source§fn from(value: u16) -> AttributeValue
fn from(value: u16) -> AttributeValue
Converts to this type from the input type.
Source§impl From<u32> for AttributeValue
impl From<u32> for AttributeValue
Source§fn from(value: u32) -> AttributeValue
fn from(value: u32) -> AttributeValue
Converts to this type from the input type.
Source§impl PartialEq for AttributeValue
impl PartialEq for AttributeValue
Source§impl PartialEq<&str> for AttributeValue
impl PartialEq<&str> for AttributeValue
Source§impl PartialEq<i64> for AttributeValue
impl PartialEq<i64> for AttributeValue
impl StructuralPartialEq for AttributeValue
Auto Trait Implementations§
impl Freeze for AttributeValue
impl RefUnwindSafe for AttributeValue
impl Send for AttributeValue
impl Sync for AttributeValue
impl Unpin for AttributeValue
impl UnsafeUnpin for AttributeValue
impl UnwindSafe for AttributeValue
Blanket Implementations§
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ServiceExt for T
impl<T> ServiceExt for T
Source§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
Apply a transformation to the response body. Read more
Source§fn decompression(self) -> Decompression<Self>where
Self: Sized,
fn decompression(self) -> Decompression<Self>where
Self: Sized,
Decompress response bodies. Read more
Source§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using HTTP status codes. Read more
Source§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more