pub struct OtelAttribute {
pub key: Option<Option<String>>,
pub value: Option<Box<OtelAttributeValue>>,
}Expand description
OtelAttribute : Key-value attribute pair for resources, scopes, or spans
Fields§
§key: Option<Option<String>>Attribute key (e.g., "service.name", "langfuse.observation.type")
value: Option<Box<OtelAttributeValue>>Implementations§
Source§impl OtelAttribute
impl OtelAttribute
Sourcepub fn builder() -> OtelAttributeBuilder
pub fn builder() -> OtelAttributeBuilder
Create an instance of OtelAttribute using the builder syntax
Source§impl OtelAttribute
impl OtelAttribute
Sourcepub fn new() -> OtelAttribute
pub fn new() -> OtelAttribute
Key-value attribute pair for resources, scopes, or spans
Trait Implementations§
Source§impl Clone for OtelAttribute
impl Clone for OtelAttribute
Source§fn clone(&self) -> OtelAttribute
fn clone(&self) -> OtelAttribute
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OtelAttribute
impl Debug for OtelAttribute
Source§impl Default for OtelAttribute
impl Default for OtelAttribute
Source§fn default() -> OtelAttribute
fn default() -> OtelAttribute
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OtelAttribute
impl<'de> Deserialize<'de> for OtelAttribute
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 OtelAttribute
impl PartialEq for OtelAttribute
Source§impl Serialize for OtelAttribute
impl Serialize for OtelAttribute
impl StructuralPartialEq for OtelAttribute
Auto Trait Implementations§
impl Freeze for OtelAttribute
impl RefUnwindSafe for OtelAttribute
impl Send for OtelAttribute
impl Sync for OtelAttribute
impl Unpin for OtelAttribute
impl UnwindSafe for OtelAttribute
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)