pub struct Operation {
pub name: String,
pub doc: Option<Doc>,
pub parameters: Vec<Parameter>,
pub ret: Ty,
pub path: String,
pub method: String,
}
Fields§
§name: String
§doc: Option<Doc>
§parameters: Vec<Parameter>
§ret: Ty
§path: String
§method: String
Implementations§
Source§impl Operation
impl Operation
pub fn flat_package_name(&self) -> String
pub fn file_name(&self) -> String
pub fn request_struct_name(&self) -> String
pub fn required_struct_name(&self) -> String
pub fn crowded_args(&self) -> bool
pub fn has_response(&self) -> bool
pub fn optional_args(&self) -> Vec<&Parameter>
pub fn required_args(&self) -> Vec<&Parameter>
pub fn parameters_by_header_query_body( &self, ) -> (Vec<&Parameter>, Vec<&Parameter>, Vec<&Parameter>)
pub fn use_required_struct(&self, _sourcegen: Language) -> bool
pub fn required_struct(&self, sourcegen: Language) -> Struct
Trait 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 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