Struct client::AuthConfig
source · pub struct AuthConfig {
pub ca_crt: String,
pub client_crt: String,
pub client_key: String,
}
Expand description
Authentication material for an AuraeScript client.
This material is read from disk many times during runtime. Changing this material during a process will impact the currently running process.
Fields§
§ca_crt: String
The same CA certificate the server has.
client_crt: String
The unique client certificate signed by the server.
client_key: String
The client secret key.
Implementations§
source§impl AuthConfig
impl AuthConfig
pub async fn to_cert_material(&self) -> Result<CertMaterial>
Trait Implementations§
source§impl Clone for AuthConfig
impl Clone for AuthConfig
source§fn clone(&self) -> AuthConfig
fn clone(&self) -> AuthConfig
Returns a copy 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 Debug for AuthConfig
impl Debug for AuthConfig
source§impl<'de> Deserialize<'de> for AuthConfig
impl<'de> Deserialize<'de> for AuthConfig
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 AuthConfig
impl RefUnwindSafe for AuthConfig
impl Send for AuthConfig
impl Sync for AuthConfig
impl Unpin for AuthConfig
impl UnwindSafe for AuthConfig
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request