pub struct HookContext {Show 18 fields
pub hook_name: String,
pub key_name: String,
pub operation_id: String,
pub http_method: String,
pub path: String,
pub path_params: Vec<Parameter>,
pub query_params: Vec<Parameter>,
pub body_type: Option<String>,
pub response_type: String,
pub module_name: String,
pub spec_name: Option<String>,
pub api_import_path: String,
pub query_keys_import_path: String,
pub param_list: String,
pub param_names: String,
pub path_param_names: String,
pub schema_imports: String,
pub description: String,
}Expand description
Context for hook generation.
Fields§
§hook_name: String§key_name: String§operation_id: String§http_method: String§path: String§path_params: Vec<Parameter>§query_params: Vec<Parameter>§body_type: Option<String>§response_type: String§module_name: String§spec_name: Option<String>§api_import_path: String§query_keys_import_path: String§param_list: String§param_names: String§path_param_names: String§schema_imports: String§description: StringImplementations§
Source§impl HookContext
impl HookContext
Trait Implementations§
Source§impl Clone for HookContext
impl Clone for HookContext
Source§fn clone(&self) -> HookContext
fn clone(&self) -> HookContext
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 Debug for HookContext
impl Debug for HookContext
Auto Trait Implementations§
impl Freeze for HookContext
impl RefUnwindSafe for HookContext
impl Send for HookContext
impl Sync for HookContext
impl Unpin for HookContext
impl UnwindSafe for HookContext
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