pub struct BaseConfig {
pub base_url: String,
pub port: Option<u16>,
pub mtls_key: Option<String>,
pub mtls_cert: Option<String>,
pub server_ca: String,
pub public_key: Option<String>,
pub personal_keypair: Option<String>,
}Expand description
Base configuration for Hessra clients
Fields§
§base_url: StringBase URL of the Hessra service (without protocol scheme)
port: Option<u16>Optional port to connect to
mtls_key: Option<String>Optional mTLS private key in PEM format (required for mTLS auth)
mtls_cert: Option<String>Optional mTLS client certificate in PEM format (required for mTLS auth)
server_ca: StringServer CA certificate in PEM format
public_key: Option<String>Public key for token verification in PEM format
personal_keypair: Option<String>Personal keypair for service chain attestation
Implementations§
Source§impl BaseConfig
impl BaseConfig
Sourcepub fn get_base_url(&self) -> String
pub fn get_base_url(&self) -> String
Get the formatted base URL, with port if specified.
Handles cases where base_url might already contain an embedded port. If both an embedded port and self.port are present, self.port takes precedence.
Trait Implementations§
Source§impl Clone for BaseConfig
impl Clone for BaseConfig
Source§fn clone(&self) -> BaseConfig
fn clone(&self) -> BaseConfig
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 moreAuto Trait Implementations§
impl Freeze for BaseConfig
impl RefUnwindSafe for BaseConfig
impl Send for BaseConfig
impl Sync for BaseConfig
impl Unpin for BaseConfig
impl UnwindSafe for BaseConfig
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