pub struct ApiMethodData {
pub method_name: String,
pub http_method: Method,
pub path: String,
pub path_params: Vec<ParameterInfo>,
pub query_params: Vec<ParameterInfo>,
pub header_params: Vec<ParameterInfo>,
pub request_body: Option<ObjectOrReference<RequestBody>>,
pub return_type: Option<ObjectOrReference<ObjectSchema>>,
pub has_auth: bool,
pub has_error_handling: bool,
}Expand description
API method data with raw OpenAPI types
Fields§
§method_name: String§http_method: Method§path: String§path_params: Vec<ParameterInfo>§query_params: Vec<ParameterInfo>§header_params: Vec<ParameterInfo>§request_body: Option<ObjectOrReference<RequestBody>>§return_type: Option<ObjectOrReference<ObjectSchema>>§has_auth: bool§has_error_handling: boolTrait Implementations§
Source§impl Clone for ApiMethodData
impl Clone for ApiMethodData
Source§fn clone(&self) -> ApiMethodData
fn clone(&self) -> ApiMethodData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for ApiMethodData
impl<'de> Deserialize<'de> for ApiMethodData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ApiMethodData
impl RefUnwindSafe for ApiMethodData
impl Send for ApiMethodData
impl Sync for ApiMethodData
impl Unpin for ApiMethodData
impl UnsafeUnpin for ApiMethodData
impl UnwindSafe for ApiMethodData
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