Struct aws_sdk_batch::types::NodeDetails
source · #[non_exhaustive]pub struct NodeDetails {
pub node_index: Option<i32>,
pub is_main_node: Option<bool>,
}
Expand description
An object that represents the details of a multi-node parallel job node.
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.node_index: Option<i32>
The node index for the node. Node index numbering starts at zero. This index is also available on the node with the AWS_BATCH_JOB_NODE_INDEX
environment variable.
is_main_node: Option<bool>
Specifies whether the current node is the main node for a multi-node parallel job.
Implementations§
source§impl NodeDetails
impl NodeDetails
sourcepub fn node_index(&self) -> Option<i32>
pub fn node_index(&self) -> Option<i32>
The node index for the node. Node index numbering starts at zero. This index is also available on the node with the AWS_BATCH_JOB_NODE_INDEX
environment variable.
sourcepub fn is_main_node(&self) -> Option<bool>
pub fn is_main_node(&self) -> Option<bool>
Specifies whether the current node is the main node for a multi-node parallel job.
source§impl NodeDetails
impl NodeDetails
sourcepub fn builder() -> NodeDetailsBuilder
pub fn builder() -> NodeDetailsBuilder
Creates a new builder-style object to manufacture NodeDetails
.
Trait Implementations§
source§impl Clone for NodeDetails
impl Clone for NodeDetails
source§fn clone(&self) -> NodeDetails
fn clone(&self) -> NodeDetails
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 NodeDetails
impl Debug for NodeDetails
source§impl PartialEq<NodeDetails> for NodeDetails
impl PartialEq<NodeDetails> for NodeDetails
source§fn eq(&self, other: &NodeDetails) -> bool
fn eq(&self, other: &NodeDetails) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for NodeDetails
Auto Trait Implementations§
impl RefUnwindSafe for NodeDetails
impl Send for NodeDetails
impl Sync for NodeDetails
impl Unpin for NodeDetails
impl UnwindSafe for NodeDetails
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