Struct aws_sdk_m2::types::AlternateKey
source · #[non_exhaustive]pub struct AlternateKey { /* private fields */ }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.
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
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 AlternateKey
impl Debug for AlternateKey
source§impl PartialEq<AlternateKey> for AlternateKey
impl PartialEq<AlternateKey> for AlternateKey
source§fn eq(&self, other: &AlternateKey) -> bool
fn eq(&self, other: &AlternateKey) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AlternateKey
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more