pub struct Operation {
pub identifier: Identifier,
pub parameters: Vec<WeakPtr<Parameter>>,
pub return_type: Vec<WeakPtr<Parameter>>,
pub is_idempotent: bool,
pub parent: WeakPtr<Interface>,
pub scope: Scope,
pub attributes: Vec<WeakPtr<Attribute>>,
pub comment: Option<DocComment>,
pub span: Span,
}Fields§
§identifier: Identifier§parameters: Vec<WeakPtr<Parameter>>§return_type: Vec<WeakPtr<Parameter>>§is_idempotent: bool§parent: WeakPtr<Interface>§scope: Scope§attributes: Vec<WeakPtr<Attribute>>§comment: Option<DocComment>§span: SpanImplementations§
Trait Implementations§
Source§impl AsAttributables for Operation
impl AsAttributables for Operation
fn concrete_attributable(&self) -> Attributables<'_>
Source§impl AsEntities for Operation
impl AsEntities for Operation
fn concrete_entity(&self) -> Entities<'_>
Source§impl Attributable for Operation
impl Attributable for Operation
Source§fn attributes(&self) -> Vec<&Attribute>
fn attributes(&self) -> Vec<&Attribute>
Returns the attributes of the element.
Source§fn all_attributes(&self) -> Vec<&Attribute>
fn all_attributes(&self) -> Vec<&Attribute>
Returns all the attributes of the element and its parents.
Source§impl Commentable for Operation
impl Commentable for Operation
fn comment(&self) -> Option<&DocComment>
Source§impl NamedSymbol for Operation
impl NamedSymbol for Operation
fn identifier(&self) -> &str
fn raw_identifier(&self) -> &Identifier
fn module_scoped_identifier(&self) -> String
fn parser_scoped_identifier(&self) -> String
Source§impl ScopedSymbol for Operation
impl ScopedSymbol for Operation
fn parser_scope(&self) -> &str
fn module_scope(&self) -> &str
fn get_module(&self) -> &Module
fn get_raw_scope(&self) -> &Scope
Source§impl<'a> TryFrom<&'a Node> for &'a Operation
impl<'a> TryFrom<&'a Node> for &'a Operation
Source§fn try_from(node: &'a Node) -> Result<&'a Operation, Self::Error>
fn try_from(node: &'a Node) -> Result<&'a Operation, Self::Error>
Attempts to unwrap a node to the specified concrete type.
If the Slice element held by the node is the specified type, this succeeds, and returns the unwrapped element in the requested container. Otherwise this method fails and returns an error message.
Source§type Error = LookupError
type Error = LookupError
The type returned in the event of a conversion error.
impl Entity for Operation
Auto Trait Implementations§
impl Freeze for Operation
impl !RefUnwindSafe for Operation
impl !Send for Operation
impl !Sync for Operation
impl Unpin for Operation
impl UnsafeUnpin for Operation
impl !UnwindSafe for Operation
Blanket Implementations§
Source§impl<A> AttributeFunctions for Awhere
A: Attributable + ?Sized,
impl<A> AttributeFunctions for Awhere
A: Attributable + ?Sized,
Source§fn has_attribute<T>(&self) -> boolwhere
T: AttributeKind + 'static,
fn has_attribute<T>(&self) -> boolwhere
T: AttributeKind + 'static,
Returns true if this element has an attribute of the specified type and false otherwise.
Source§fn find_attribute<T>(&self) -> Option<&T>where
T: AttributeKind + 'static,
fn find_attribute<T>(&self) -> Option<&T>where
T: AttributeKind + 'static,
Returns the first attribute of the specified type that is applied to this element.
If no attributes of the specified type can be found, this returns
None.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