Struct dnapi_rs::message::EnrollRequest
source · pub struct EnrollRequest {
pub code: String,
pub dh_pubkey: Vec<u8>,
pub ed_pubkey: Vec<u8>,
pub timestamp: String,
}
Expand description
EnrollRequest
is issued to the ENROLL_ENDPOINT
to enroll this dnclient
with a dnapi organization
Fields§
§code: String
The enrollment code given by the API server.
dh_pubkey: Vec<u8>
The ECDH public-key that should be used to sign the Nebula certificate given to this node.
ed_pubkey: Vec<u8>
The Ed25519 public-key that this node will use to sign messages sent to the API.
timestamp: String
The timestamp of when this request 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 EnrollRequest
impl<'de> Deserialize<'de> for EnrollRequest
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