pub struct RequestWrapper {
pub message_type: String,
pub value: Vec<u8>,
pub timestamp: String,
}
Expand description
RequestWrapper
wraps a DNClient
request message. It consists of a
type and value, with the type string indicating how to interpret the value blob.
Fields§
§message_type: String
The type of the message. Used to determine how value
is encoded
value: Vec<u8>
A base64-encoded arbitrary message, the type of which is stated in message_type
timestamp: String
The timestamp of when this message was sent. Follows the format %Y-%m-%dT%H:%M:%S.%f%:z
, or:
<4-digit year>-2023-03-29T09:56:42.380006369-04:00
would represent 29 March 03, 2023, 09:56:42.380006369 UTC-4
Trait Implementations§
Source§impl Debug for RequestWrapper
impl Debug for RequestWrapper
Source§impl<'de> Deserialize<'de> for RequestWrapper
impl<'de> Deserialize<'de> for RequestWrapper
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 RequestWrapper
impl RefUnwindSafe for RequestWrapper
impl Send for RequestWrapper
impl Sync for RequestWrapper
impl Unpin for RequestWrapper
impl UnwindSafe for RequestWrapper
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