pub struct Method {
pub name: String,
pub operation_id: String,
pub http_method: String,
pub path: String,
pub doc: Option<String>,
pub params: Vec<Param>,
pub body: Option<Ty>,
pub ok: Ty,
pub ok_status: u16,
pub paginated: bool,
}Expand description
One client method, lowered from an operation.
Fields§
§name: StringMethod name in the target language.
operation_id: String§http_method: String§path: StringRoute template with {placeholder} segments.
doc: Option<String>§params: Vec<Param>§body: Option<Ty>Request body type, when the operation takes one.
ok: TySuccess response type.
ok_status: u16§paginated: boolWhether the response switches to a page envelope when the pagination parameters are sent.
Trait Implementations§
impl Eq for Method
impl StructuralPartialEq for Method
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