pub enum Operation {
Read,
Create,
Update,
Delete,
Exec,
}Expand description
NACM operations enumeration
Represents the different types of operations that can be performed in a NETCONF/RESTCONF system. Maps to standard CRUD operations plus exec.
§Examples
use nacm_validator::Operation;
let read_op = Operation::Read;
let write_op = Operation::Update;
// Operations can be compared
assert_ne!(read_op, write_op);Variants§
Read
Reading/retrieving data (GET operations)
Create
Creating new data (POST operations)
Update
Modifying existing data (PUT/PATCH operations)
Delete
Removing data (DELETE operations)
Exec
Executing RPCs or actions (RPC operations)
Trait Implementations§
Source§impl FromStr for Operation
Implementation of FromStr trait for Operation
impl FromStr for Operation
Implementation of FromStr trait for Operation
Enables parsing operations from strings, used in CLI and XML parsing.
Case-insensitive: “READ”, “read”, “Read” all parse to Operation::Read.
impl Eq for Operation
impl StructuralPartialEq 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 UnwindSafe for Operation
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