pub struct ApiOperationData {
pub client_struct: GoStruct,
pub methods: Vec<GoApiMethodData>,
pub imports: Vec<String>,
pub tag: String,
pub tag_pascal_case: String,
pub tag_snake_case: String,
pub package_name: String,
pub sdk_name: String,
pub common_file_header: CommonFileHeaderData,
}Expand description
API operation data for template rendering
Fields§
§client_struct: GoStruct§methods: Vec<GoApiMethodData>§imports: Vec<String>§tag: String§tag_pascal_case: String§tag_snake_case: String§package_name: String§sdk_name: String§common_file_header: CommonFileHeaderDataImplementations§
Source§impl ApiOperationData
impl ApiOperationData
pub fn new( client_struct: GoStruct, tag: String, sdk_name: String, common_file_header: CommonFileHeaderData, ) -> Self
pub fn with_methods(self, methods: Vec<GoApiMethodData>) -> Self
pub fn with_imports(self, imports: Vec<String>) -> Self
Trait Implementations§
Source§impl Clone for ApiOperationData
impl Clone for ApiOperationData
Source§fn clone(&self) -> ApiOperationData
fn clone(&self) -> ApiOperationData
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 ApiOperationData
impl Debug for ApiOperationData
Source§impl<'de> Deserialize<'de> for ApiOperationData
impl<'de> Deserialize<'de> for ApiOperationData
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 ApiOperationData
impl RefUnwindSafe for ApiOperationData
impl Send for ApiOperationData
impl Sync for ApiOperationData
impl Unpin for ApiOperationData
impl UnsafeUnpin for ApiOperationData
impl UnwindSafe for ApiOperationData
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