pub struct InstallOptions {
pub application: ApplicationId,
pub schedule_secs: u64,
pub workspace: WorkspaceMode,
pub operation_id: Option<String>,
pub confirmation: Confirmation,
}Expand description
Options for Session::app_install.
§Examples
use stratum_node_cli::{Confirmation, InstallOptions};
use stratum_node_core::WorkspaceMode;
// `stratum app install <application> --schedule 3600 --yes`
let options = InstallOptions {
application: "0123456789abcdef0123456789abcdef".parse()?,
schedule_secs: 3600,
workspace: WorkspaceMode::None,
operation_id: None,
confirmation: Confirmation::Assumed,
};
assert_eq!(options.schedule_secs, 3600);Fields§
§application: ApplicationIdThe application to install, as the catalogue lists it.
schedule_secs: u64The schedule interval in seconds: 0 for manual runs only, otherwise 300 to 604800.
workspace: WorkspaceModeThe workspace asked for; no more than the manifest allows. Every mode
other than none is refused by a node without workspace slots.
operation_id: Option<String>The operation ID of the create request; random when None. Pass the
one a previous run printed, with the same application, schedule and
workspace, to continue that installation rather than create another.
confirmation: ConfirmationWhether to ask before writing the grant.
Trait Implementations§
Source§impl Clone for InstallOptions
impl Clone for InstallOptions
Auto Trait Implementations§
impl Forget for InstallOptions
impl Freeze for InstallOptions
impl Move for InstallOptions
impl RefUnwindSafe for InstallOptions
impl Send for InstallOptionswhere
RawVecInner: Send,
impl Sync for InstallOptionswhere
RawVecInner: Sync,
impl Unpin for InstallOptions
impl UnsafeUnpin for InstallOptions
impl UnwindSafe for InstallOptionswhere
RawVecInner: UnwindSafe,
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