pub struct OtelAttributeValue {
pub string_value: Option<Option<String>>,
pub int_value: Option<Option<i32>>,
pub double_value: Option<Option<f64>>,
pub bool_value: Option<Option<bool>>,
}Expand description
OtelAttributeValue : Attribute value wrapper supporting different value types
Fields§
§string_value: Option<Option<String>>String value
int_value: Option<Option<i32>>Integer value
double_value: Option<Option<f64>>Double value
bool_value: Option<Option<bool>>Boolean value
Implementations§
Source§impl OtelAttributeValue
impl OtelAttributeValue
Sourcepub fn builder() -> OtelAttributeValueBuilder
pub fn builder() -> OtelAttributeValueBuilder
Create an instance of OtelAttributeValue using the builder syntax
Source§impl OtelAttributeValue
impl OtelAttributeValue
Sourcepub fn new() -> OtelAttributeValue
pub fn new() -> OtelAttributeValue
Attribute value wrapper supporting different value types
Trait Implementations§
Source§impl Clone for OtelAttributeValue
impl Clone for OtelAttributeValue
Source§fn clone(&self) -> OtelAttributeValue
fn clone(&self) -> OtelAttributeValue
Returns a duplicate of the value. Read more
1.0.0 · 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 OtelAttributeValue
impl Debug for OtelAttributeValue
Source§impl Default for OtelAttributeValue
impl Default for OtelAttributeValue
Source§fn default() -> OtelAttributeValue
fn default() -> OtelAttributeValue
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OtelAttributeValue
impl<'de> Deserialize<'de> for OtelAttributeValue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for OtelAttributeValue
impl PartialEq for OtelAttributeValue
Source§impl Serialize for OtelAttributeValue
impl Serialize for OtelAttributeValue
impl StructuralPartialEq for OtelAttributeValue
Auto Trait Implementations§
impl Freeze for OtelAttributeValue
impl RefUnwindSafe for OtelAttributeValue
impl Send for OtelAttributeValue
impl Sync for OtelAttributeValue
impl Unpin for OtelAttributeValue
impl UnwindSafe for OtelAttributeValue
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