pub enum AttributeArrayValue<T>where
T: SpanText,{
String(T),
Boolean(bool),
Integer(i64),
Double(f64),
}Variants§
Implementations§
Source§impl AttributeArrayValue<&str>
impl AttributeArrayValue<&str>
Sourcepub fn try_to_bytes(&self, bytes: &Bytes) -> Option<AttributeArrayValueBytes>
pub fn try_to_bytes(&self, bytes: &Bytes) -> Option<AttributeArrayValueBytes>
Converts a single AttributeArrayValueSlice item into its owned form
(AttributeArrayValueBytes), borrowing data from the provided Bytes buffer when
necessary.
Trait Implementations§
Source§impl<T> Clone for AttributeArrayValue<T>
impl<T> Clone for AttributeArrayValue<T>
Source§fn clone(&self) -> AttributeArrayValue<T>
fn clone(&self) -> AttributeArrayValue<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 AttributeArrayValue<T>
impl<T> Debug for AttributeArrayValue<T>
Source§impl<T> From<&AttributeArrayValue<T>> for u8where
T: SpanText,
impl<T> From<&AttributeArrayValue<T>> for u8where
T: SpanText,
Source§fn from(attribute: &AttributeArrayValue<T>) -> u8
fn from(attribute: &AttributeArrayValue<T>) -> u8
Converts to this type from the input type.
Source§impl<T> PartialEq for AttributeArrayValue<T>
impl<T> PartialEq for AttributeArrayValue<T>
Source§impl<T> Serialize for AttributeArrayValue<T>where
T: SpanText,
impl<T> Serialize for AttributeArrayValue<T>where
T: SpanText,
impl<T> StructuralPartialEq for AttributeArrayValue<T>where
T: SpanText,
Auto Trait Implementations§
impl<T> Freeze for AttributeArrayValue<T>where
T: Freeze,
impl<T> RefUnwindSafe for AttributeArrayValue<T>where
T: RefUnwindSafe,
impl<T> Send for AttributeArrayValue<T>where
T: Send,
impl<T> Sync for AttributeArrayValue<T>where
T: Sync,
impl<T> Unpin for AttributeArrayValue<T>where
T: Unpin,
impl<T> UnwindSafe for AttributeArrayValue<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