pub struct ApiEndpoint {
pub method: &'static str,
pub path: &'static str,
}Expand description
An HTTP API endpoint reference for CLI help display.
Shows the HTTP equivalent of a CLI command (e.g. GET /v1/mdns/discover).
Full OpenAPI metadata (summaries, schemas, query params) is owned by the
domain crates via #[utoipa::path] annotations on their handlers.
Fields§
§method: &'static str§path: &'static strTrait 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 moreimpl Copy 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