#[repr(C)]pub struct OperationDescriptor {
pub name: String,
pub direction: OperationDirection,
pub doctext: String,
}
👎Deprecated: The capability provider functionality from this crate has been moved to wasmcloud-provider-core
Expand description
A description of a single operation supported by a capability provider
Fields§
§name: String
👎Deprecated: The capability provider functionality from this crate has been moved to wasmcloud-provider-core
The name of the operation. This must be unique per capability ID
direction: OperationDirection
👎Deprecated: The capability provider functionality from this crate has been moved to wasmcloud-provider-core
Indicates the direction of the operation (can be bi-directional)
doctext: String
👎Deprecated: The capability provider functionality from this crate has been moved to wasmcloud-provider-core
Documentation-suitable text for this operation
Implementations§
Source§impl OperationDescriptor
impl OperationDescriptor
Sourcepub fn new(
name: &str,
direction: OperationDirection,
doctext: &str,
) -> OperationDescriptor
pub fn new( name: &str, direction: OperationDirection, doctext: &str, ) -> OperationDescriptor
Creates a new operation descriptor
Trait Implementations§
Source§impl Clone for OperationDescriptor
impl Clone for OperationDescriptor
Source§fn clone(&self) -> OperationDescriptor
fn clone(&self) -> OperationDescriptor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OperationDescriptor
impl Debug for OperationDescriptor
Source§impl<'de> Deserialize<'de> for OperationDescriptor
impl<'de> Deserialize<'de> for OperationDescriptor
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for OperationDescriptor
impl PartialEq for OperationDescriptor
Source§impl Serialize for OperationDescriptor
impl Serialize for OperationDescriptor
impl StructuralPartialEq for OperationDescriptor
Auto Trait Implementations§
impl Freeze for OperationDescriptor
impl RefUnwindSafe for OperationDescriptor
impl Send for OperationDescriptor
impl Sync for OperationDescriptor
impl Unpin for OperationDescriptor
impl UnwindSafe for OperationDescriptor
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