pub enum AttributeAnyValue<T>where
T: SpanText,{
SingleValue(AttributeArrayValue<T>),
Array(Vec<AttributeArrayValue<T>>),
}Variants§
SingleValue(AttributeArrayValue<T>)
Array(Vec<AttributeArrayValue<T>>)
Implementations§
Source§impl AttributeAnyValue<&str>
impl AttributeAnyValue<&str>
Sourcepub fn try_to_bytes(&self, bytes: &Bytes) -> Option<AttributeAnyValueBytes>
pub fn try_to_bytes(&self, bytes: &Bytes) -> Option<AttributeAnyValueBytes>
Converts a borrowed AttributeAnyValueSlice into its owned AttributeAnyValueBytes
representation, using the provided Bytes buffer. Recursively processes inner values if
it’s an array.
Trait Implementations§
Source§impl<T> Clone for AttributeAnyValue<T>
impl<T> Clone for AttributeAnyValue<T>
Source§fn clone(&self) -> AttributeAnyValue<T>
fn clone(&self) -> AttributeAnyValue<T>
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<T> Debug for AttributeAnyValue<T>
impl<T> Debug for AttributeAnyValue<T>
Source§impl<T> From<&AttributeAnyValue<T>> for u8where
T: SpanText,
impl<T> From<&AttributeAnyValue<T>> for u8where
T: SpanText,
Source§fn from(attribute: &AttributeAnyValue<T>) -> u8
fn from(attribute: &AttributeAnyValue<T>) -> u8
Converts to this type from the input type.
Source§impl<T> PartialEq for AttributeAnyValue<T>
impl<T> PartialEq for AttributeAnyValue<T>
Source§impl<T> Serialize for AttributeAnyValue<T>where
T: SpanText,
impl<T> Serialize for AttributeAnyValue<T>where
T: SpanText,
impl<T> StructuralPartialEq for AttributeAnyValue<T>where
T: SpanText,
Auto Trait Implementations§
impl<T> Freeze for AttributeAnyValue<T>where
T: Freeze,
impl<T> RefUnwindSafe for AttributeAnyValue<T>where
T: RefUnwindSafe,
impl<T> Send for AttributeAnyValue<T>where
T: Send,
impl<T> Sync for AttributeAnyValue<T>where
T: Sync,
impl<T> Unpin for AttributeAnyValue<T>where
T: Unpin,
impl<T> UnwindSafe for AttributeAnyValue<T>where
T: UnwindSafe,
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