pub struct PluginOpenApiMetadata {
pub core: bool,
pub endpoints: Vec<(HttpMethod, String, OpenApiEndpoint)>,
pub models: Vec<OpenApiModel>,
}Expand description
A plugin’s endpoint annotations and schema additions.
Fields§
§core: boolUse the core API documentation policy for this plugin.
endpoints: Vec<(HttpMethod, String, OpenApiEndpoint)>§models: Vec<OpenApiModel>Implementations§
Source§impl PluginOpenApiMetadata
impl PluginOpenApiMetadata
pub fn endpoint( self, method: HttpMethod, path: impl Into<String>, metadata: OpenApiEndpoint, ) -> Self
pub fn model(self, model: OpenApiModel) -> Self
Trait Implementations§
Source§impl Clone for PluginOpenApiMetadata
impl Clone for PluginOpenApiMetadata
Source§impl Debug for PluginOpenApiMetadata
impl Debug for PluginOpenApiMetadata
Auto Trait Implementations§
impl Freeze for PluginOpenApiMetadata
impl RefUnwindSafe for PluginOpenApiMetadata
impl Send for PluginOpenApiMetadata
impl Sync for PluginOpenApiMetadata
impl Unpin for PluginOpenApiMetadata
impl UnsafeUnpin for PluginOpenApiMetadata
impl UnwindSafe for PluginOpenApiMetadata
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