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 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