Struct aws_sdk_m2::types::AlternateKey
source · #[non_exhaustive]pub struct AlternateKey {
pub name: Option<String>,
pub offset: i32,
pub length: i32,
pub allow_duplicates: bool,
}
Expand description
Defines an alternate key. This value is optional. A legacy data set might not have any alternate key defined but if those alternate keys definitions exist, provide them, as some applications will make use of them.
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.name: Option<String>
The name of the alternate key.
offset: i32
A positive integer value representing the offset to mark the start of the alternate key part in the record byte array.
length: i32
A strictly positive integer value representing the length of the alternate key.
allow_duplicates: bool
Indicates whether the alternate key values are supposed to be unique for the given data set.
Implementations§
source§impl AlternateKey
impl AlternateKey
sourcepub fn offset(&self) -> i32
pub fn offset(&self) -> i32
A positive integer value representing the offset to mark the start of the alternate key part in the record byte array.
sourcepub fn length(&self) -> i32
pub fn length(&self) -> i32
A strictly positive integer value representing the length of the alternate key.
sourcepub fn allow_duplicates(&self) -> bool
pub fn allow_duplicates(&self) -> bool
Indicates whether the alternate key values are supposed to be unique for the given data set.
source§impl AlternateKey
impl AlternateKey
sourcepub fn builder() -> AlternateKeyBuilder
pub fn builder() -> AlternateKeyBuilder
Creates a new builder-style object to manufacture AlternateKey
.
Trait Implementations§
source§impl Clone for AlternateKey
impl Clone for AlternateKey
source§fn clone(&self) -> AlternateKey
fn clone(&self) -> AlternateKey
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AlternateKey
impl Debug for AlternateKey
source§impl PartialEq for AlternateKey
impl PartialEq for AlternateKey
source§fn eq(&self, other: &AlternateKey) -> bool
fn eq(&self, other: &AlternateKey) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AlternateKey
Auto Trait Implementations§
impl Freeze for AlternateKey
impl RefUnwindSafe for AlternateKey
impl Send for AlternateKey
impl Sync for AlternateKey
impl Unpin for AlternateKey
impl UnwindSafe for AlternateKey
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> 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