pub struct ApiMethodSpec {
pub method_key: &'static str,
pub chinese_name: &'static str,
pub fetcher_name: &'static str,
pub route: &'static str,
pub http_method: HttpMethod,
pub description: &'static str,
pub tags: &'static [&'static str],
}Expand description
A single published API capability.
Fields§
§method_key: &'static strStable method key used by the web layer.
chinese_name: &'static strOriginal Chinese method label from the source API catalog.
fetcher_name: &'static strCanonical English fetcher method name.
route: &'static strRelative REST path within the platform base path.
http_method: HttpMethodHTTP method exposed by the web surface.
description: &'static strShort human-readable description.
Tags used to group related capabilities.
Trait Implementations§
Source§impl Clone for ApiMethodSpec
impl Clone for ApiMethodSpec
Source§fn clone(&self) -> ApiMethodSpec
fn clone(&self) -> ApiMethodSpec
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 ApiMethodSpec
impl Debug for ApiMethodSpec
Source§impl PartialEq for ApiMethodSpec
impl PartialEq for ApiMethodSpec
Source§impl Serialize for ApiMethodSpec
impl Serialize for ApiMethodSpec
impl Copy for ApiMethodSpec
impl Eq for ApiMethodSpec
impl StructuralPartialEq for ApiMethodSpec
Auto Trait Implementations§
impl Freeze for ApiMethodSpec
impl RefUnwindSafe for ApiMethodSpec
impl Send for ApiMethodSpec
impl Sync for ApiMethodSpec
impl Unpin for ApiMethodSpec
impl UnsafeUnpin for ApiMethodSpec
impl UnwindSafe for ApiMethodSpec
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