pub struct Metadata {
pub flex_metadata: FlexMetadata,
pub policy_metadata: PolicyMetadata,
pub api_metadata: ApiMetadata,
pub platform_metadata: PlatformMetadata,
}Expand description
Metadata about the API and the policy.
Fields§
§flex_metadata: FlexMetadataMetadata regarding the flex instance where the policy is running.
policy_metadata: PolicyMetadataMetadata regarding the policy.
api_metadata: ApiMetadataMetadata regarding the api where the policy is applied.
platform_metadata: PlatformMetadataMetadata regarding the management plane.
Implementations§
Trait Implementations§
Source§impl FromContext<ConfigureContext> for Metadata
impl FromContext<ConfigureContext> for Metadata
type Error = Infallible
fn from_context(_context: &ConfigureContext) -> Result<Self, Self::Error>
fn from_context_always(context: &C) -> Selfwhere
Self: FromContext<C, E, Error = Infallible>,
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
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