pub struct Attributes(pub Vec<RawAttribute>);Expand description
Attributes is list of message attributes.
Tuple Fields§
§0: Vec<RawAttribute>Implementations§
Source§impl Attributes
impl Attributes
Sourcepub fn get(&self, t: AttrType) -> (RawAttribute, bool)
pub fn get(&self, t: AttrType) -> (RawAttribute, bool)
get returns first attribute from list by the type. If attribute is present the RawAttribute is returned and the boolean is true. Otherwise the returned RawAttribute will be empty and boolean will be false.
Trait Implementations§
Source§impl Clone for Attributes
impl Clone for Attributes
Source§impl Debug for Attributes
impl Debug for Attributes
Source§impl Default for Attributes
impl Default for Attributes
impl Eq for Attributes
Source§impl PartialEq for Attributes
impl PartialEq for Attributes
impl StructuralPartialEq for Attributes
Auto Trait Implementations§
impl Forget for Attributes
impl Freeze for Attributes
impl Move for Attributes
impl RefUnwindSafe for Attributes
impl Send for Attributeswhere
RawVecInner: Send,
impl Sync for Attributeswhere
RawVecInner: Sync,
impl Unpin for Attributes
impl UnsafeUnpin for Attributes
impl UnwindSafe for Attributeswhere
RawVecInner: 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