pub struct Property<'a> {
pub name: &'a str,
pub ty: &'a Signature,
pub access: Access,
pub annotations: Box<[Annotation<'a>]>,
pub doc: Doc<'a>,
}Expand description
A property on an interface.
Fields§
§name: &'a strThe name of the property.
ty: &'a SignatureThe type of the property.
access: AccessWhether the property can be read, written, or both.
annotations: Box<[Annotation<'a>]>Annotations applied to the property.
doc: Doc<'a>Documentation associated with the property.
Trait Implementations§
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> UnsafeUnpin 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