pub struct ApiParam {
pub name: String,
pub param_type: ApiParamType,
pub type_name: String,
pub extractor_param: Option<String>,
}Expand description
API参数
表示API端点的一个参数信息
Fields§
§name: String参数名称
param_type: ApiParamType参数类型
type_name: String类型名称
extractor_param: Option<String>提取器参数
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ApiParam
impl<'de> Deserialize<'de> for ApiParam
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 ApiParam
impl RefUnwindSafe for ApiParam
impl Send for ApiParam
impl Sync for ApiParam
impl Unpin for ApiParam
impl UnsafeUnpin for ApiParam
impl UnwindSafe for ApiParam
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