Struct aws_sdk_m2::types::VsamAttributes
source · #[non_exhaustive]pub struct VsamAttributes {
pub format: String,
pub encoding: Option<String>,
pub compressed: bool,
pub primary_key: Option<PrimaryKey>,
pub alternate_keys: Option<Vec<AlternateKey>>,
}
Expand description
The attributes of a VSAM type data set.
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.format: String
The record format of the data set.
encoding: Option<String>
The character set used by the data set. Can be ASCII, EBCDIC, or unknown.
compressed: bool
Indicates whether indexes for this dataset are stored as compressed values. If you have a large data set (typically > 100 Mb), consider setting this flag to True.
primary_key: Option<PrimaryKey>
The primary key of the data set.
alternate_keys: Option<Vec<AlternateKey>>
The alternate key definitions, if any. A legacy dataset 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 VsamAttributes
impl VsamAttributes
sourcepub fn encoding(&self) -> Option<&str>
pub fn encoding(&self) -> Option<&str>
The character set used by the data set. Can be ASCII, EBCDIC, or unknown.
sourcepub fn compressed(&self) -> bool
pub fn compressed(&self) -> bool
Indicates whether indexes for this dataset are stored as compressed values. If you have a large data set (typically > 100 Mb), consider setting this flag to True.
sourcepub fn primary_key(&self) -> Option<&PrimaryKey>
pub fn primary_key(&self) -> Option<&PrimaryKey>
The primary key of the data set.
sourcepub fn alternate_keys(&self) -> &[AlternateKey]
pub fn alternate_keys(&self) -> &[AlternateKey]
The alternate key definitions, if any. A legacy dataset might not have any alternate key defined, but if those alternate keys definitions exist, provide them as some applications will make use of them.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .alternate_keys.is_none()
.
source§impl VsamAttributes
impl VsamAttributes
sourcepub fn builder() -> VsamAttributesBuilder
pub fn builder() -> VsamAttributesBuilder
Creates a new builder-style object to manufacture VsamAttributes
.
Trait Implementations§
source§impl Clone for VsamAttributes
impl Clone for VsamAttributes
source§fn clone(&self) -> VsamAttributes
fn clone(&self) -> VsamAttributes
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VsamAttributes
impl Debug for VsamAttributes
source§impl PartialEq for VsamAttributes
impl PartialEq for VsamAttributes
source§fn eq(&self, other: &VsamAttributes) -> bool
fn eq(&self, other: &VsamAttributes) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for VsamAttributes
Auto Trait Implementations§
impl Freeze for VsamAttributes
impl RefUnwindSafe for VsamAttributes
impl Send for VsamAttributes
impl Sync for VsamAttributes
impl Unpin for VsamAttributes
impl UnwindSafe for VsamAttributes
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