#[non_exhaustive]pub enum JobResponse {
Hello {
version: u32,
runtime_boot_id: String,
},
Info {
info: JobInfo,
},
Page {
page: JobPage,
},
Output {
page: JobOutputPage,
},
Attached {
info: JobInfo,
cursor: u64,
},
Ok,
Error {
code: String,
message: String,
},
}Expand description
Result of one operation. Errors retain machine-readable codes across SDKs.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Hello
Successful capability discovery.
Fields
Info
Admission or inspection result.
Page
List page.
Output
Output page.
Fields
§
page: JobOutputPageBounded output result.
Attached
Attachment metadata and current replay cursor.
Ok
Control operation was admitted.
Error
Explicit refusal or failure; never a fabricated process exit.
Implementations§
Trait Implementations§
Source§impl Clone for JobResponse
impl Clone for JobResponse
Source§impl Debug for JobResponse
impl Debug for JobResponse
Source§impl<'de> Deserialize<'de> for JobResponse
impl<'de> Deserialize<'de> for JobResponse
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
Auto Trait Implementations§
impl Freeze for JobResponse
impl RefUnwindSafe for JobResponse
impl Send for JobResponse
impl Sync for JobResponse
impl Unpin for JobResponse
impl UnsafeUnpin for JobResponse
impl UnwindSafe for JobResponse
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