pub struct Envelope<T> {
pub code: Option<i64>,
pub message: Option<String>,
pub data: Option<T>,
}Expand description
Standard response envelope. Insta360 has used both code and errCode
across versions, and both errInfo/msg for the message; accept all.
Fields§
§code: Option<i64>§message: Option<String>§data: Option<T>Implementations§
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for Envelope<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Envelope<T>where
T: Deserialize<'de>,
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<T> Freeze for Envelope<T>
impl<T> RefUnwindSafe for Envelope<T>where
Option<T>: RefUnwindSafe,
impl<T> Send for Envelope<T>
impl<T> Sync for Envelope<T>
impl<T> Unpin for Envelope<T>
impl<T> UnsafeUnpin for Envelope<T>where
Option<T>: UnsafeUnpin,
impl<T> UnwindSafe for Envelope<T>where
Option<T>: 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