pub struct ManagedApiMetadata {
pub description: Option<&'static str>,
pub contact_url: Option<&'static str>,
pub contact_email: Option<&'static str>,
pub extra: Value,
}Expand description
Optional metadata that’s part of a ManagedApiConfig.
Fields§
§description: Option<&'static str>human-readable description of the API (goes into OpenAPI document)
contact_url: Option<&'static str>the contact URL for the API (goes into OpenAPI document)
contact_email: Option<&'static str>the contact email for the API (goes into OpenAPI document)
extra: Valueextra, dynamically-typed metadata for internal use
Trait Implementations§
Source§impl Clone for ManagedApiMetadata
impl Clone for ManagedApiMetadata
Source§fn clone(&self) -> ManagedApiMetadata
fn clone(&self) -> ManagedApiMetadata
Returns a duplicate of the value. Read more
1.0.0 · 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 ManagedApiMetadata
impl Debug for ManagedApiMetadata
Source§impl Default for ManagedApiMetadata
impl Default for ManagedApiMetadata
Source§fn default() -> ManagedApiMetadata
fn default() -> ManagedApiMetadata
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ManagedApiMetadata
impl RefUnwindSafe for ManagedApiMetadata
impl Send for ManagedApiMetadata
impl Sync for ManagedApiMetadata
impl Unpin for ManagedApiMetadata
impl UnsafeUnpin for ManagedApiMetadata
impl UnwindSafe for ManagedApiMetadata
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