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: i32A positive integer value representing the offset to mark the start of the alternate key part in the record byte array.
length: i32A strictly positive integer value representing the length of the alternate key.
allow_duplicates: boolIndicates 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 ==.