pub struct Interface<'a> { /* private fields */ }
Expand description
An interface
Implementations§
Source§impl<'a> Interface<'a>
impl<'a> Interface<'a>
Sourcepub fn name(&self) -> InterfaceName<'_>
pub fn name(&self) -> InterfaceName<'_>
Returns the interface name.
Sourcepub fn properties(&self) -> &[Property<'_>]
pub fn properties(&self) -> &[Property<'_>]
Returns the interface properties.
Sourcepub fn annotations(&self) -> &[Annotation]
pub fn annotations(&self) -> &[Annotation]
Return the associated annotations.
Trait Implementations§
Source§impl<'de: 'a, 'a> Deserialize<'de> for Interface<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Interface<'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 Interface<'a>
Auto Trait Implementations§
impl<'a> Freeze for Interface<'a>
impl<'a> RefUnwindSafe for Interface<'a>
impl<'a> Send for Interface<'a>
impl<'a> Sync for Interface<'a>
impl<'a> Unpin for Interface<'a>
impl<'a> UnwindSafe for Interface<'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