pub struct Operation {
pub url: &'static str,
pub resource: &'static str,
pub code: &'static str,
pub system: bool,
pub type_level: bool,
pub instance: bool,
pub parameters: &'static [Parameter],
}Expand description
One operation as its version declares it.
Fields§
§url: &'static strThe canonical URL of the OperationDefinition.
resource: &'static strThe resource type the operation applies to.
code: &'static strThe code used to invoke the operation, without the $.
system: boolWhether the operation is invoked at the system level.
type_level: boolWhether the operation is invoked at the resource type level.
instance: boolWhether the operation is invoked on a resource instance.
parameters: &'static [Parameter]Every declared parameter, in and out, in declaration order.
Implementations§
Source§impl Operation
impl Operation
Sourcepub fn parameter(
&self,
usage: ParameterUse,
name: &str,
) -> Option<&'static Parameter>
pub fn parameter( &self, usage: ParameterUse, name: &str, ) -> Option<&'static Parameter>
The parameter named name with the given direction, if declared.
Sourcepub fn parameters_of(
&self,
usage: ParameterUse,
) -> impl Iterator<Item = &'static Parameter>
pub fn parameters_of( &self, usage: ParameterUse, ) -> impl Iterator<Item = &'static Parameter>
The parameters of one direction, in declaration order.
Trait Implementations§
impl Copy for Operation
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 UnsafeUnpin 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