pub struct RegisteredPath {
pub append: fn(PathsBuilder) -> PathsBuilder,
pub schemas: fn(&mut Vec<(String, RefOr<Schema>)>),
}Available on crate feature
server only.Expand description
One documented endpoint, registered by crate::api_get / crate::api_post.
append folds the path into a PathsBuilder; schemas contributes
component schemas referenced by that path (request bodies, responses).
Fields§
§append: fn(PathsBuilder) -> PathsBuilder§schemas: fn(&mut Vec<(String, RefOr<Schema>)>)Trait Implementations§
impl Collect for RegisteredPath
Auto Trait Implementations§
impl Freeze for RegisteredPath
impl RefUnwindSafe for RegisteredPath
impl Send for RegisteredPath
impl Sync for RegisteredPath
impl Unpin for RegisteredPath
impl UnsafeUnpin for RegisteredPath
impl UnwindSafe for RegisteredPath
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