pub struct Endpoint {
pub name: String,
pub method: String,
pub path: String,
pub description: String,
pub params: Vec<Param>,
}Expand description
A single API endpoint extracted from an OpenAPI spec.
Fields§
§name: StringCLI-friendly name: repos_owner_repo_issues_post
method: StringHTTP method (uppercase): GET, POST, PUT, DELETE, PATCH
path: StringPath template: /repos/{owner}/{repo}/issues
description: StringHuman-readable description (from summary or description)
params: Vec<Param>Parameters (path + query)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Endpoint
impl RefUnwindSafe for Endpoint
impl Send for Endpoint
impl Sync for Endpoint
impl Unpin for Endpoint
impl UnsafeUnpin for Endpoint
impl UnwindSafe for Endpoint
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