pub struct OperationNode {
pub node_id: NodeId,
pub name: String,
pub return_type: Option<Ref<TypeNode>>,
pub params: Vec<Id<ParamNode>>,
pub raises: Vec<Ref<ExceptionNode>>,
pub oneway: bool,
pub contexts: Vec<String>,
pub parent: AnyId,
pub facets: Facets,
}Expand description
An operation. Spec §3.4.
Fields§
§node_id: NodeIdStable identity.
name: StringSimple name.
return_type: Option<Ref<TypeNode>>Return type, absent for a void operation.
void is the absence of a return, not a data type: giving it a
type node would put a value with no representation into the
layout and profile tables. IDL 4.2 §7.4.3.5.
params: Vec<Id<ParamNode>>Parameters in declaration order.
raises: Vec<Ref<ExceptionNode>>Exceptions this operation may raise.
oneway: boolWhether the operation is oneway.
contexts: Vec<String>context identifiers, in declaration order.
parent: AnyIdThe interface or valuetype this operation belongs to.
facets: FacetsPer-source information. Spec §4.
Trait Implementations§
Source§impl Clone for OperationNode
impl Clone for OperationNode
Source§impl Debug for OperationNode
impl Debug for OperationNode
impl Eq for OperationNode
Source§impl PartialEq for OperationNode
impl PartialEq for OperationNode
impl StructuralPartialEq for OperationNode
Auto Trait Implementations§
impl Freeze for OperationNode
impl RefUnwindSafe for OperationNode
impl Send for OperationNode
impl Sync for OperationNode
impl Unpin for OperationNode
impl UnsafeUnpin for OperationNode
impl UnwindSafe for OperationNode
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