pub struct GoApiMethodData {Show 13 fields
pub name: String,
pub http_method: String,
pub path: String,
pub operation_id: String,
pub path_params: Vec<GoParameterInfo>,
pub query_params: Vec<GoParameterInfo>,
pub header_params: Vec<GoParameterInfo>,
pub body_param: Option<GoParameterInfo>,
pub has_request_body: bool,
pub request_body_content_type: String,
pub request_body_type: Option<String>,
pub response_type: Option<String>,
pub description: Option<String>,
}Expand description
Go-specific API method data for template rendering
Fields§
§name: String§http_method: String§path: String§operation_id: String§path_params: Vec<GoParameterInfo>§query_params: Vec<GoParameterInfo>§header_params: Vec<GoParameterInfo>§body_param: Option<GoParameterInfo>§has_request_body: bool§request_body_content_type: String§request_body_type: Option<String>§response_type: Option<String>§description: Option<String>Trait Implementations§
Source§impl Clone for GoApiMethodData
impl Clone for GoApiMethodData
Source§fn clone(&self) -> GoApiMethodData
fn clone(&self) -> GoApiMethodData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GoApiMethodData
impl Debug for GoApiMethodData
Source§impl<'de> Deserialize<'de> for GoApiMethodData
impl<'de> Deserialize<'de> for GoApiMethodData
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 GoApiMethodData
impl RefUnwindSafe for GoApiMethodData
impl Send for GoApiMethodData
impl Sync for GoApiMethodData
impl Unpin for GoApiMethodData
impl UnsafeUnpin for GoApiMethodData
impl UnwindSafe for GoApiMethodData
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