#[non_exhaustive]pub struct UpdateStaticPolicyDefinition {
pub description: Option<String>,
pub statement: String,
}Expand description
Contains information about an update to a static policy.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.description: Option<String>Specifies the description to be added to or replaced on the static policy.
statement: StringSpecifies the Cedar policy language text to be added to or replaced on the static policy.
You can change only the following elements from the original content:
-
The
actionreferenced by the policy. -
Any conditional clauses, such as
whenorunlessclauses.
You can't change the following elements:
-
Changing from
StaticPolicytoTemplateLinkedPolicy. -
The effect (
permitorforbid) of the policy. -
The
principalreferenced by the policy. -
The
resourcereferenced by the policy.
Implementations§
source§impl UpdateStaticPolicyDefinition
impl UpdateStaticPolicyDefinition
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
Specifies the description to be added to or replaced on the static policy.
sourcepub fn statement(&self) -> &str
pub fn statement(&self) -> &str
Specifies the Cedar policy language text to be added to or replaced on the static policy.
You can change only the following elements from the original content:
-
The
actionreferenced by the policy. -
Any conditional clauses, such as
whenorunlessclauses.
You can't change the following elements:
-
Changing from
StaticPolicytoTemplateLinkedPolicy. -
The effect (
permitorforbid) of the policy. -
The
principalreferenced by the policy. -
The
resourcereferenced by the policy.
source§impl UpdateStaticPolicyDefinition
impl UpdateStaticPolicyDefinition
sourcepub fn builder() -> UpdateStaticPolicyDefinitionBuilder
pub fn builder() -> UpdateStaticPolicyDefinitionBuilder
Creates a new builder-style object to manufacture UpdateStaticPolicyDefinition.
Trait Implementations§
source§impl Clone for UpdateStaticPolicyDefinition
impl Clone for UpdateStaticPolicyDefinition
source§fn clone(&self) -> UpdateStaticPolicyDefinition
fn clone(&self) -> UpdateStaticPolicyDefinition
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for UpdateStaticPolicyDefinition
impl Debug for UpdateStaticPolicyDefinition
source§impl PartialEq for UpdateStaticPolicyDefinition
impl PartialEq for UpdateStaticPolicyDefinition
source§fn eq(&self, other: &UpdateStaticPolicyDefinition) -> bool
fn eq(&self, other: &UpdateStaticPolicyDefinition) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UpdateStaticPolicyDefinition
Auto Trait Implementations§
impl Freeze for UpdateStaticPolicyDefinition
impl RefUnwindSafe for UpdateStaticPolicyDefinition
impl Send for UpdateStaticPolicyDefinition
impl Sync for UpdateStaticPolicyDefinition
impl Unpin for UpdateStaticPolicyDefinition
impl UnwindSafe for UpdateStaticPolicyDefinition
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more