#[non_exhaustive]pub struct NodeInitializationAction {
pub executable_file: String,
pub execution_timeout: Option<Duration>,
/* private fields */
}Expand description
Specifies an executable to run on a fully configured node and a timeout period for executable completion.
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.executable_file: StringRequired. Cloud Storage URI of executable file.
execution_timeout: Option<Duration>Optional. Amount of time executable has to complete. Default is 10 minutes (see JSON representation of Duration).
Cluster creation fails with an explanatory error message (the name of the executable that caused the error and the exceeded timeout period) if the executable is not completed at end of the timeout period.
Implementations§
Source§impl NodeInitializationAction
impl NodeInitializationAction
pub fn new() -> Self
Sourcepub fn set_executable_file<T: Into<String>>(self, v: T) -> Self
pub fn set_executable_file<T: Into<String>>(self, v: T) -> Self
Sets the value of executable_file.
Sourcepub fn set_execution_timeout<T>(self, v: T) -> Self
pub fn set_execution_timeout<T>(self, v: T) -> Self
Sets the value of execution_timeout.
Sourcepub fn set_or_clear_execution_timeout<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_execution_timeout<T>(self, v: Option<T>) -> Self
Sets or clears the value of execution_timeout.
Trait Implementations§
Source§impl Clone for NodeInitializationAction
impl Clone for NodeInitializationAction
Source§fn clone(&self) -> NodeInitializationAction
fn clone(&self) -> NodeInitializationAction
Returns a duplicate 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 NodeInitializationAction
impl Debug for NodeInitializationAction
Source§impl Default for NodeInitializationAction
impl Default for NodeInitializationAction
Source§fn default() -> NodeInitializationAction
fn default() -> NodeInitializationAction
Returns the “default value” for a type. Read more
Source§impl Message for NodeInitializationAction
impl Message for NodeInitializationAction
Source§impl PartialEq for NodeInitializationAction
impl PartialEq for NodeInitializationAction
impl StructuralPartialEq for NodeInitializationAction
Auto Trait Implementations§
impl Freeze for NodeInitializationAction
impl RefUnwindSafe for NodeInitializationAction
impl Send for NodeInitializationAction
impl Sync for NodeInitializationAction
impl Unpin for NodeInitializationAction
impl UnwindSafe for NodeInitializationAction
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