Struct dnapi_rs::message::RequestWrapper
source · 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<'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