pub struct Attribute {
pub node_id: NodeId,
pub name: String,
pub type_: Id<TypeNode>,
pub readonly: bool,
pub get_raises: Vec<Raise>,
pub set_raises: Vec<Raise>,
}Expand description
One attribute of an interface. OMG IDL 4.2 §7.4.3, rule (88).
Fields§
§node_id: NodeIdStable identity of the model node.
name: StringIts IDL name.
type_: Id<TypeNode>Its declared type.
readonly: boolWhether it is readonly.
get_raises: Vec<Raise>The getraises clause, in declaration order.
set_raises: Vec<Raise>The setraises clause, in declaration order.
Implementations§
Source§impl Attribute
impl Attribute
Sourcepub fn get_raises_line(&self) -> Option<String>
pub fn get_raises_line(&self) -> Option<String>
raises_line over Self::get_raises, for a language that
renders the getter half of the attribute separately from the
setter (a native property’s get accessor, or a getter method).
Sourcepub fn set_raises_line(&self) -> Option<String>
pub fn set_raises_line(&self) -> Option<String>
raises_line over Self::set_raises.
Trait Implementations§
impl Eq for Attribute
impl StructuralPartialEq for Attribute
Auto Trait Implementations§
impl Freeze for Attribute
impl RefUnwindSafe for Attribute
impl Send for Attribute
impl Sync for Attribute
impl Unpin for Attribute
impl UnsafeUnpin for Attribute
impl UnwindSafe for Attribute
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