pub struct CustomAttribute {
pub name: String,
pub attribute_type: CustomAttributeType,
pub description: Option<String>,
pub deprecated: bool,
}Fields§
§name: String§attribute_type: CustomAttributeType§description: Option<String>§deprecated: boolMarks the attribute deprecated. The only mutation apply performs.
Trait Implementations§
Source§impl Clone for CustomAttribute
impl Clone for CustomAttribute
Source§fn clone(&self) -> CustomAttribute
fn clone(&self) -> CustomAttribute
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 CustomAttribute
impl Debug for CustomAttribute
Source§impl<'de> Deserialize<'de> for CustomAttribute
impl<'de> Deserialize<'de> for CustomAttribute
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CustomAttribute
impl PartialEq for CustomAttribute
Source§fn eq(&self, other: &CustomAttribute) -> bool
fn eq(&self, other: &CustomAttribute) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CustomAttribute
impl Serialize for CustomAttribute
impl StructuralPartialEq for CustomAttribute
Auto Trait Implementations§
impl Freeze for CustomAttribute
impl RefUnwindSafe for CustomAttribute
impl Send for CustomAttribute
impl Sync for CustomAttribute
impl Unpin for CustomAttribute
impl UnsafeUnpin for CustomAttribute
impl UnwindSafe for CustomAttribute
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