pub type AttributeAnyValueSlice<'a> = AttributeAnyValue<&'a str>;Aliased Type§
pub enum AttributeAnyValueSlice<'a> {
SingleValue(AttributeArrayValue<&'a str>),
Array(Vec<AttributeArrayValue<&'a str>>),
}Variants§
SingleValue(AttributeArrayValue<&'a str>)
Array(Vec<AttributeArrayValue<&'a str>>)
Implementations§
Source§impl AttributeAnyValueSlice<'_>
impl AttributeAnyValueSlice<'_>
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.