Struct aws_sdk_iot::types::PolicyVersion
source · #[non_exhaustive]pub struct PolicyVersion {
pub version_id: Option<String>,
pub is_default_version: bool,
pub create_date: Option<DateTime>,
}
Expand description
Describes a policy version.
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.version_id: Option<String>
The policy version ID.
is_default_version: bool
Specifies whether the policy version is the default.
create_date: Option<DateTime>
The date and time the policy was created.
Implementations§
source§impl PolicyVersion
impl PolicyVersion
sourcepub fn version_id(&self) -> Option<&str>
pub fn version_id(&self) -> Option<&str>
The policy version ID.
sourcepub fn is_default_version(&self) -> bool
pub fn is_default_version(&self) -> bool
Specifies whether the policy version is the default.
sourcepub fn create_date(&self) -> Option<&DateTime>
pub fn create_date(&self) -> Option<&DateTime>
The date and time the policy was created.
source§impl PolicyVersion
impl PolicyVersion
sourcepub fn builder() -> PolicyVersionBuilder
pub fn builder() -> PolicyVersionBuilder
Creates a new builder-style object to manufacture PolicyVersion
.
Trait Implementations§
source§impl Clone for PolicyVersion
impl Clone for PolicyVersion
source§fn clone(&self) -> PolicyVersion
fn clone(&self) -> PolicyVersion
Returns a copy 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 PolicyVersion
impl Debug for PolicyVersion
source§impl PartialEq for PolicyVersion
impl PartialEq for PolicyVersion
source§fn eq(&self, other: &PolicyVersion) -> bool
fn eq(&self, other: &PolicyVersion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PolicyVersion
Auto Trait Implementations§
impl Freeze for PolicyVersion
impl RefUnwindSafe for PolicyVersion
impl Send for PolicyVersion
impl Sync for PolicyVersion
impl Unpin for PolicyVersion
impl UnwindSafe for PolicyVersion
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
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.