pub enum AttributeValues {
    String(String),
    Bool(bool),
    Number(i32),
}Expand description
Represents the different types of attribute values that the library supports.
Variants§
String(String)
Represents a string attribute value.
Bool(bool)
Represents a boolean attribute value.
Number(i32)
Represents an integer attribute value.
Implementations§
Source§impl AttributeValues
 
impl AttributeValues
Sourcepub fn from<T: Into<AttributeValues>>(value: T) -> Self
 
pub fn from<T: Into<AttributeValues>>(value: T) -> Self
Creates a new AttributeValues instance from a value that can be converted into AttributeValues.
This function uses the Into trait to allow for flexible type conversion.
§Examples
let string_value = AttributeValues::from("Hello, world!");
let bool_value = AttributeValues::from(true);
let number_value = AttributeValues::from(42);Trait Implementations§
Source§impl Clone for AttributeValues
 
impl Clone for AttributeValues
Source§fn clone(&self) -> AttributeValues
 
fn clone(&self) -> AttributeValues
Returns a copy 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 AttributeValues
 
impl Debug for AttributeValues
Source§impl Display for AttributeValues
 
impl Display for AttributeValues
Source§impl From<&str> for AttributeValues
 
impl From<&str> for AttributeValues
Source§impl From<String> for AttributeValues
 
impl From<String> for AttributeValues
Source§impl From<bool> for AttributeValues
 
impl From<bool> for AttributeValues
Source§impl From<i32> for AttributeValues
 
impl From<i32> for AttributeValues
Source§impl PartialEq for AttributeValues
 
impl PartialEq for AttributeValues
impl Eq for AttributeValues
impl StructuralPartialEq for AttributeValues
Auto Trait Implementations§
impl Freeze for AttributeValues
impl RefUnwindSafe for AttributeValues
impl Send for AttributeValues
impl Sync for AttributeValues
impl Unpin for AttributeValues
impl UnwindSafe for AttributeValues
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