#[non_exhaustive]pub struct ApiMetadata {
pub id: Option<String>,
pub name: Option<String>,
pub version: Option<String>,
pub base_path: Option<String>,
pub slas: Option<Vec<ApiSla>>,
}Expand description
Metadata regarding the api where the policy is applied.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: Option<String>The ID of the API.
name: Option<String>The name of the API.
version: Option<String>The version of the API.
base_path: Option<String>The base_path of the API.
slas: Option<Vec<ApiSla>>The slas associated to the API.
Trait Implementations§
Source§impl Clone for ApiMetadata
impl Clone for ApiMetadata
Source§fn clone(&self) -> ApiMetadata
fn clone(&self) -> ApiMetadata
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 ApiMetadata
impl Debug for ApiMetadata
Source§impl Default for ApiMetadata
impl Default for ApiMetadata
Source§fn default() -> ApiMetadata
fn default() -> ApiMetadata
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ApiMetadata
impl RefUnwindSafe for ApiMetadata
impl Send for ApiMetadata
impl Sync for ApiMetadata
impl Unpin for ApiMetadata
impl UnsafeUnpin for ApiMetadata
impl UnwindSafe for ApiMetadata
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