pub struct Attribute<MSG> {
pub namespace: Option<&'static str>,
pub name: &'static str,
pub value: Vec<AttributeValue<MSG>>,
}Fields§
§namespace: Option<&'static str>§name: &'static str§value: Vec<AttributeValue<MSG>>Implementations§
Source§impl<MSG> Attribute<MSG>
impl<MSG> Attribute<MSG>
pub fn new( namespace: Option<&'static str>, name: &'static str, value: AttributeValue<MSG>, ) -> Self
pub fn with_multiple_values( namespace: Option<&'static str>, name: &'static str, value: &[AttributeValue<MSG>], ) -> Self
pub fn name(&self) -> &'static str
pub fn value(&self) -> &[AttributeValue<MSG>]
pub fn namespace(&self) -> Option<&'static str>
Trait Implementations§
Source§impl<MSG> AttributeMapMsg<MSG> for Attribute<MSG>where
MSG: 'static,
impl<MSG> AttributeMapMsg<MSG> for Attribute<MSG>where
MSG: 'static,
impl<MSG> StructuralPartialEq for Attribute<MSG>
Auto Trait Implementations§
impl<MSG> Freeze for Attribute<MSG>
impl<MSG> !RefUnwindSafe for Attribute<MSG>
impl<MSG> !Send for Attribute<MSG>
impl<MSG> !Sync for Attribute<MSG>
impl<MSG> Unpin for Attribute<MSG>
impl<MSG> !UnwindSafe for Attribute<MSG>
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