pub struct Operation {
pub operation_id: String,
pub method: String,
pub path: String,
pub summary: Option<String>,
pub shape: RouteShape,
}Expand description
One operation to emit, pairing spec identity with the inferred shape.
Fields§
§operation_id: String§method: StringHTTP verb, or QUERY/MUTATION/SUBSCRIPTION/SEND/RECEIVE/TOOL — whichever vocabulary the target dialect speaks.
path: StringRoute path, channel address, or field name.
summary: Option<String>Usually the handler’s doc comment.
shape: RouteShapeTrait Implementations§
Auto Trait Implementations§
impl Forget for Operation
impl Freeze for Operationwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
PhantomData<Parameter>: Freeze,
*const LeafNode<String, Response> is !null: Freeze,
PhantomData<Box<(String, Response)>>: Freeze,
PhantomData<Gap>: Freeze,
*const LeafNode<String, SetValZST> is !null: Freeze,
PhantomData<Box<(String, SetValZST)>>: Freeze,
impl Move for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnsafeUnpin for Operationwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
PhantomData<Parameter>: UnsafeUnpin,
*const LeafNode<String, Response> is !null: UnsafeUnpin,
PhantomData<Box<(String, Response)>>: UnsafeUnpin,
PhantomData<Gap>: UnsafeUnpin,
*const LeafNode<String, SetValZST> is !null: UnsafeUnpin,
PhantomData<Box<(String, SetValZST)>>: UnsafeUnpin,
impl UnwindSafe for Operationwhere
RawVecInner: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
BTreeMap<String, Response>: UnwindSafe,
BTreeMap<String, SetValZST>: UnwindSafe,
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