pub struct ResponseBase {
pub activity_id: Uuid,
pub result: i32,
pub error_message: String,
pub error_records: Value,
}Expand description
Base fields present on every response body.
Fields§
§activity_id: Uuid§result: i32HRESULT i32 — 0 = success, negative = failure. Matches Windows HRESULT layout (top bit = severity).
error_message: String§error_records: ValueOn failure, the in-guest GCS populates this with a JSON array of
ErrorRecord objects (e.g.
[{"Result":-1070137077,"Message":"...","ModuleName":"vmcomputeagent.exe",...}]).
It is kept as a raw serde_json::Value so callers can render or parse
it on demand; a String field here fails to deserialize the guest’s
array shape with “invalid type: sequence, expected a string”.
Trait Implementations§
Source§impl Clone for ResponseBase
impl Clone for ResponseBase
Source§fn clone(&self) -> ResponseBase
fn clone(&self) -> ResponseBase
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ResponseBase
impl Debug for ResponseBase
Source§impl Default for ResponseBase
impl Default for ResponseBase
Source§fn default() -> ResponseBase
fn default() -> ResponseBase
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ResponseBase
impl<'de> Deserialize<'de> for ResponseBase
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 ResponseBase
impl RefUnwindSafe for ResponseBase
impl Send for ResponseBase
impl Sync for ResponseBase
impl Unpin for ResponseBase
impl UnsafeUnpin for ResponseBase
impl UnwindSafe for ResponseBase
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