pub struct Property<'a> { /* private fields */ }
Expand description
A property
Implementations§
Source§impl<'a> Property<'a>
impl<'a> Property<'a>
Sourcepub fn name(&self) -> PropertyName<'_>
pub fn name(&self) -> PropertyName<'_>
Returns the property name.
Sourcepub fn ty(&self) -> &CompleteType<'a>
pub fn ty(&self) -> &CompleteType<'a>
Returns the property type.
Sourcepub fn access(&self) -> PropertyAccess
pub fn access(&self) -> PropertyAccess
Returns the property access flags (should be “read”, “write” or “readwrite”).
Sourcepub fn annotations(&self) -> &[Annotation]
pub fn annotations(&self) -> &[Annotation]
Return the associated annotations.
Trait Implementations§
Source§impl<'de: 'a, 'a> Deserialize<'de> for Property<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Property<'a>
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
impl<'a> StructuralPartialEq for Property<'a>
Auto Trait Implementations§
impl<'a> Freeze for Property<'a>
impl<'a> RefUnwindSafe for Property<'a>
impl<'a> Send for Property<'a>
impl<'a> Sync for Property<'a>
impl<'a> Unpin for Property<'a>
impl<'a> UnwindSafe for Property<'a>
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