pub struct CreateInstallationRequest {
pub operation_id: OperationId,
pub application: ApplicationId,
pub schedule_secs: u64,
pub workspace: WorkspaceMode,
}Expand description
The body of POST /api/v1/installations.
workspace absent means none; the client always writes it, so the
signed bytes say which was chosen.
§Examples
use stratum_node_core::{ApplicationId, CreateInstallationRequest, WorkspaceMode};
let app = ApplicationId::from_bytes([7; 16]);
let body: CreateInstallationRequest = serde_json::from_str(&format!(
r#"{{"operation_id":"i-1","application":"{app}","schedule_secs":3600}}"#
))?;
assert_eq!(body.workspace, WorkspaceMode::None);
assert!(serde_json::to_string(&body)?.ends_with(r#""schedule_secs":3600,"workspace":"none"}"#));Fields§
§operation_id: OperationIdThe member’s operation ID.
application: ApplicationIdThe application to install.
schedule_secs: u640 (manual only) or 300 to 604 800.
workspace: WorkspaceModeThe workspace asked for; no more than the manifest allows.
Trait Implementations§
Source§impl Clone for CreateInstallationRequest
impl Clone for CreateInstallationRequest
Source§impl Debug for CreateInstallationRequest
impl Debug for CreateInstallationRequest
Source§impl<'de> Deserialize<'de> for CreateInstallationRequest
impl<'de> Deserialize<'de> for CreateInstallationRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CreateInstallationRequest
Source§impl Hash for CreateInstallationRequest
impl Hash for CreateInstallationRequest
impl StructuralPartialEq for CreateInstallationRequest
Auto Trait Implementations§
impl Forget for CreateInstallationRequest
impl Freeze for CreateInstallationRequest
impl Move for CreateInstallationRequest
impl RefUnwindSafe for CreateInstallationRequest
impl Send for CreateInstallationRequestwhere
RawVecInner: Send,
impl Sync for CreateInstallationRequestwhere
RawVecInner: Sync,
impl Unpin for CreateInstallationRequest
impl UnsafeUnpin for CreateInstallationRequest
impl UnwindSafe for CreateInstallationRequestwhere
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