pub struct OperationMetadata {
pub name: &'static str,
pub description: &'static str,
pub inputs: &'static [InputSpec],
pub outputs: &'static [OutputSpec],
pub requires_extensions: &'static [ExtensionSpec],
}Expand description
A static description of an Operation’s inputs, outputs, and
extension requirements.
Returned by Operation::metadata and consumed by the
Registry during draft-time validation. Because every field is a
&'static reference, the metadata is allocation-free — an
implementation typically returns a struct literal built from const
arrays.
Fields§
§name: &'static strThe operation’s canonical name, surfaced in error messages and
in logs from the Logger hook.
description: &'static strA human-readable description of what the operation does.
inputs: &'static [InputSpec]The operation’s declared inputs, in declaration order.
outputs: &'static [OutputSpec]The operation’s declared outputs, in declaration order.
requires_extensions: &'static [ExtensionSpec]The extensions the operation requires at runtime.
Trait Implementations§
Source§impl Clone for OperationMetadata
impl Clone for OperationMetadata
Source§fn clone(&self) -> OperationMetadata
fn clone(&self) -> OperationMetadata
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 moreAuto Trait Implementations§
impl Freeze for OperationMetadata
impl RefUnwindSafe for OperationMetadata
impl Send for OperationMetadata
impl Sync for OperationMetadata
impl Unpin for OperationMetadata
impl UnsafeUnpin for OperationMetadata
impl UnwindSafe for OperationMetadata
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