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§
§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 moreAuto Trait Implementations§
impl Freeze for ApiMetadata
impl RefUnwindSafe for ApiMetadata
impl Send for ApiMetadata
impl Sync for ApiMetadata
impl Unpin 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