pub struct ApiEndpoint {
pub controller: String,
pub name: String,
pub method: String,
pub path: String,
pub params: Vec<ApiParam>,
pub return_type: Option<String>,
pub is_async: bool,
}Expand description
API端点
表示一个API端点的完整信息
Fields§
§controller: String控制器名称
name: String函数名称
method: StringHTTP方法
path: String路径
params: Vec<ApiParam>参数列表
return_type: Option<String>返回类型
is_async: bool是否异步
Trait Implementations§
Source§impl Clone for ApiEndpoint
impl Clone for ApiEndpoint
Source§fn clone(&self) -> ApiEndpoint
fn clone(&self) -> ApiEndpoint
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 ApiEndpoint
impl Debug for ApiEndpoint
Source§impl Default for ApiEndpoint
impl Default for ApiEndpoint
Source§fn default() -> ApiEndpoint
fn default() -> ApiEndpoint
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ApiEndpoint
impl<'de> Deserialize<'de> for ApiEndpoint
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 ApiEndpoint
impl RefUnwindSafe for ApiEndpoint
impl Send for ApiEndpoint
impl Sync for ApiEndpoint
impl Unpin for ApiEndpoint
impl UnsafeUnpin for ApiEndpoint
impl UnwindSafe for ApiEndpoint
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