pub struct RequestV1 {
pub version: i32,
pub host_id: String,
pub counter: u32,
pub message: String,
pub signature: Vec<u8>,
}Expand description
RequestV1 is the version 1 DNClient request message.
Fields§
§version: i32Version is always 1
host_id: StringThe Host ID of this dnclient instance
counter: u32The counter last returned by the server
message: StringA base64-encoded message. This must be previously base64-encoded, as the signature is signed over the base64-encoded data.
signature: Vec<u8>An ed25519 signature over the message, which can be verified with the host’s previously enrolled ed25519 public key
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RequestV1
impl<'de> Deserialize<'de> for RequestV1
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 RequestV1
impl RefUnwindSafe for RequestV1
impl Send for RequestV1
impl Sync for RequestV1
impl Unpin for RequestV1
impl UnwindSafe for RequestV1
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