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 Debug for EnrollRequest
impl Debug for EnrollRequest
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
Auto Trait Implementations§
impl Freeze for EnrollRequest
impl RefUnwindSafe for EnrollRequest
impl Send for EnrollRequest
impl Sync for EnrollRequest
impl Unpin for EnrollRequest
impl UnwindSafe for EnrollRequest
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