pub struct OtaCheckResponse {
pub status: Status,
pub data: Option<OtaData>,
pub error: Option<String>,
pub transaction: Option<Json>,
}Expand description
The response to ota_check.
A response is published once per request, to
bridge/response/<request>, and is not retained.
Fields§
§status: Statusok or error.
data: Option<OtaData>The result, when status is ok.
error: Option<String>What went wrong, when status is error.
transaction: Option<Json>The request’s transaction, echoed when it had one.
Implementations§
Trait Implementations§
Source§impl Clone for OtaCheckResponse
impl Clone for OtaCheckResponse
Source§impl Debug for OtaCheckResponse
impl Debug for OtaCheckResponse
Source§impl<'de> Deserialize<'de> for OtaCheckResponse
impl<'de> Deserialize<'de> for OtaCheckResponse
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 OtaCheckResponse
impl RefUnwindSafe for OtaCheckResponse
impl Send for OtaCheckResponse
impl Sync for OtaCheckResponse
impl Unpin for OtaCheckResponse
impl UnsafeUnpin for OtaCheckResponse
impl UnwindSafe for OtaCheckResponse
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