pub struct Property<'a> { /* private fields */ }
Expand description
A property
Implementations§
source§impl<'a> Property<'a>
impl<'a> Property<'a>
sourcepub fn name(&self) -> MemberName<'_>
pub fn name(&self) -> MemberName<'_>
Returns the property name.
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