pub struct Credentials {
pub host_id: String,
pub ed_privkey: SigningKey,
pub counter: u32,
pub trusted_keys: Vec<VerifyingKey>,
}Expand description
Contains information necessary to make requests against the DNClient API.
Fields§
§host_id: StringThe assigned Host ID that this client represents
ed_privkey: SigningKeyThe ed25519 private key used to sign requests against the API
counter: u32The counter used in the other API requests. It is unknown what the purpose of this is, but the original client persists it and it is needed for API calls.
trusted_keys: Vec<VerifyingKey>The set of trusted ed25519 keys that may be used by the API to sign API responses.
Trait Implementations§
Source§impl Clone for Credentials
impl Clone for Credentials
Source§fn clone(&self) -> Credentials
fn clone(&self) -> Credentials
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for Credentials
impl<'de> Deserialize<'de> for Credentials
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 Credentials
impl RefUnwindSafe for Credentials
impl Send for Credentials
impl Sync for Credentials
impl Unpin for Credentials
impl UnwindSafe for Credentials
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