pub enum ApiParamType {
Body,
Path,
Query,
Header,
CurrentUser,
Session,
I18n,
Regular,
}Expand description
API参数类型
表示API参数的提取类型
Variants§
Trait Implementations§
Source§impl Clone for ApiParamType
impl Clone for ApiParamType
Source§fn clone(&self) -> ApiParamType
fn clone(&self) -> ApiParamType
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 ApiParamType
impl Debug for ApiParamType
Source§impl Default for ApiParamType
impl Default for ApiParamType
Source§fn default() -> ApiParamType
fn default() -> ApiParamType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ApiParamType
impl<'de> Deserialize<'de> for ApiParamType
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
Source§impl PartialEq for ApiParamType
impl PartialEq for ApiParamType
Source§impl Serialize for ApiParamType
impl Serialize for ApiParamType
impl Eq for ApiParamType
impl StructuralPartialEq for ApiParamType
Auto Trait Implementations§
impl Freeze for ApiParamType
impl RefUnwindSafe for ApiParamType
impl Send for ApiParamType
impl Sync for ApiParamType
impl Unpin for ApiParamType
impl UnsafeUnpin for ApiParamType
impl UnwindSafe for ApiParamType
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