pub struct RpcStmt { /* private fields */ }Expand description
The “rpc” Statement.
Implementations§
Source§impl RpcStmt
impl RpcStmt
pub fn arg(&self) -> &Identifier
pub fn if_feature(&self) -> &Vec<IfFeatureStmt>
pub fn status(&self) -> &Option<StatusStmt>
pub fn description(&self) -> &Option<DescriptionStmt>
pub fn reference(&self) -> &Option<ReferenceStmt>
pub fn typedef_or_grouping(&self) -> &TypedefOrGrouping
pub fn input(&self) -> &Option<InputStmt>
pub fn output(&self) -> &Option<OutputStmt>
Trait Implementations§
Source§impl Stmt for RpcStmt
impl Stmt for RpcStmt
Source§type Arg = Identifier
type Arg = Identifier
Arg type.
Source§type SubStmts = (Vec<IfFeatureStmt>, Option<StatusStmt>, Option<DescriptionStmt>, Option<ReferenceStmt>, TypedefOrGrouping, Option<InputStmt>, Option<OutputStmt>)
type SubStmts = (Vec<IfFeatureStmt>, Option<StatusStmt>, Option<DescriptionStmt>, Option<ReferenceStmt>, TypedefOrGrouping, Option<InputStmt>, Option<OutputStmt>)
Sub Statements.
Source§fn opt_substmts() -> bool
fn opt_substmts() -> bool
Return true if this statement has sub-statements optionally.
Source§fn substmts_def() -> Vec<SubStmtDef>
fn substmts_def() -> Vec<SubStmtDef>
Return substatements definition.
Source§fn new_with_arg(arg: Self::Arg) -> YangStmtwhere
Self: Sized,
fn new_with_arg(arg: Self::Arg) -> YangStmtwhere
Self: Sized,
Constructor with a single arg. Panic if it is not defined.
Source§fn new_with_substmts(arg: Self::Arg, substmts: Self::SubStmts) -> YangStmtwhere
Self: Sized,
fn new_with_substmts(arg: Self::Arg, substmts: Self::SubStmts) -> YangStmtwhere
Self: Sized,
Constructor with tuple of substatements. Panic if it is not defined.
Source§fn parse_substmts(parser: &mut Parser) -> Result<Self::SubStmts, YangError>
fn parse_substmts(parser: &mut Parser) -> Result<Self::SubStmts, YangError>
Parse substatements.
Source§fn has_substmts() -> bool
fn has_substmts() -> bool
Return true if this statement has sub-statements.
impl StructuralPartialEq for RpcStmt
Auto Trait Implementations§
impl Freeze for RpcStmt
impl RefUnwindSafe for RpcStmt
impl Send for RpcStmt
impl Sync for RpcStmt
impl Unpin for RpcStmt
impl UnwindSafe for RpcStmt
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