pub struct DirectiveAttribute {
pub name: String,
pub value: Option<String>,
}Expand description
One attribute of a directive’s {name=value} block.
Fields§
§name: StringThe attribute name.
value: Option<String>The attribute value, or None for a valueless attribute.
Trait Implementations§
Source§impl Clone for DirectiveAttribute
impl Clone for DirectiveAttribute
Source§fn clone(&self) -> DirectiveAttribute
fn clone(&self) -> DirectiveAttribute
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DirectiveAttribute
impl Debug for DirectiveAttribute
impl Eq for DirectiveAttribute
Source§impl PartialEq for DirectiveAttribute
impl PartialEq for DirectiveAttribute
Source§fn eq(&self, other: &DirectiveAttribute) -> bool
fn eq(&self, other: &DirectiveAttribute) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DirectiveAttribute
Auto Trait Implementations§
impl Freeze for DirectiveAttribute
impl RefUnwindSafe for DirectiveAttribute
impl Send for DirectiveAttribute
impl Sync for DirectiveAttribute
impl Unpin for DirectiveAttribute
impl UnsafeUnpin for DirectiveAttribute
impl UnwindSafe for DirectiveAttribute
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