pub struct ApiEndpoint {
pub name: String,
pub method: String,
pub path: String,
pub description: String,
}Expand description
A single HTTP endpoint description.
Fields§
§name: StringEndpoint name.
method: StringHTTP method (GET/POST/…).
path: StringURL path.
description: StringHuman-readable description.
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 (const: unstable) · 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<'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
Source§impl PartialEq for ApiEndpoint
impl PartialEq for ApiEndpoint
Source§impl Serialize for ApiEndpoint
impl Serialize for ApiEndpoint
impl StructuralPartialEq for ApiEndpoint
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