pub struct RunRequest {
pub operation_id: OperationId,
pub period: u64,
}Expand description
The body of POST /api/v1/installations/{id}/run.
§Examples
use stratum_node_core::RunRequest;
let body = RunRequest { operation_id: "r-1".parse()?, period: 12 };
assert_eq!(serde_json::to_string(&body)?, r#"{"operation_id":"r-1","period":12}"#);Fields§
§operation_id: OperationIdThe member’s operation ID.
period: u64The period to run.
Trait Implementations§
Source§impl Clone for RunRequest
impl Clone for RunRequest
Source§impl Debug for RunRequest
impl Debug for RunRequest
Source§impl<'de> Deserialize<'de> for RunRequest
impl<'de> Deserialize<'de> for RunRequest
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 RunRequest
Source§impl Hash for RunRequest
impl Hash for RunRequest
Source§impl PartialEq for RunRequest
impl PartialEq for RunRequest
Source§impl Serialize for RunRequest
impl Serialize for RunRequest
impl StructuralPartialEq for RunRequest
Auto Trait Implementations§
impl Forget for RunRequest
impl Freeze for RunRequest
impl Move for RunRequest
impl RefUnwindSafe for RunRequest
impl Send for RunRequestwhere
RawVecInner: Send,
impl Sync for RunRequestwhere
RawVecInner: Sync,
impl Unpin for RunRequest
impl UnsafeUnpin for RunRequest
impl UnwindSafe for RunRequestwhere
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