pub struct Method {
pub name: String,
pub operation_id: Option<String>,
pub summary: Option<String>,
pub http_method: String,
pub path: String,
pub params: Vec<Param>,
pub body: Option<bool>,
}Expand description
One generated method.
Fields§
§name: StringThe subcommand name.
operation_id: Option<String>The document’s own operationId, verbatim, when it carried one.
Kept beside the kebab-cased name because it is the identity other
artifacts use: the vendored core contract is addressed by operation id
(see tapesctl’s api::contract), and the coverage gate that keeps the
CLI honest about what it exposes is written in the document’s own terms.
summary: Option<String>One line of help.
http_method: StringThe HTTP verb, uppercased.
path: StringThe public path template, used verbatim — core already republished the document onto the paths a client can call.
params: Vec<Param>Path, query and header inputs.
body: Option<bool>Some(true) when a request body is required, Some(false) when it is
accepted but optional, None when the operation takes none.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Method
impl RefUnwindSafe for Method
impl Send for Method
impl Sync for Method
impl Unpin for Method
impl UnsafeUnpin for Method
impl UnwindSafe for Method
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