pub struct AttributeNode {
pub node_id: NodeId,
pub name: String,
pub type_: Ref<TypeNode>,
pub readonly: bool,
pub get_raises: Vec<Ref<ExceptionNode>>,
pub set_raises: Vec<Ref<ExceptionNode>>,
pub parent: Id<InterfaceNode>,
pub facets: Facets,
}Expand description
An interface attribute. Spec §3.4.
Fields§
§node_id: NodeIdStable identity.
name: StringSimple name.
type_: Ref<TypeNode>Declared type.
readonly: boolWhether the attribute is readonly.
get_raises: Vec<Ref<ExceptionNode>>Exceptions the getter may raise.
set_raises: Vec<Ref<ExceptionNode>>Exceptions the setter may raise. A readonly attribute with a
non-empty setter list is representable here and rejected by
profile validation, not by the model. Spec §8.2.
parent: Id<InterfaceNode>The interface this attribute belongs to.
facets: FacetsPer-source information. Spec §4.
Trait Implementations§
Source§impl Clone for AttributeNode
impl Clone for AttributeNode
Source§impl Debug for AttributeNode
impl Debug for AttributeNode
impl Eq for AttributeNode
Source§impl PartialEq for AttributeNode
impl PartialEq for AttributeNode
impl StructuralPartialEq for AttributeNode
Auto Trait Implementations§
impl Freeze for AttributeNode
impl RefUnwindSafe for AttributeNode
impl Send for AttributeNode
impl Sync for AttributeNode
impl Unpin for AttributeNode
impl UnsafeUnpin for AttributeNode
impl UnwindSafe for AttributeNode
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