pub struct TrustConfig {
pub bundle_url: String,
pub cache_path: PathBuf,
pub root_pubkey: Option<[u8; 32]>,
pub override_path: Option<PathBuf>,
pub timeout: Duration,
}Fields§
§bundle_url: String§cache_path: PathBuf§root_pubkey: Option<[u8; 32]>§override_path: Option<PathBuf>§timeout: DurationImplementations§
Source§impl TrustConfig
impl TrustConfig
pub fn new(bundle_url: impl Into<String>) -> Self
pub fn with_root_pubkey(self, root_pubkey: [u8; 32]) -> Self
pub fn with_cache_path(self, cache_path: PathBuf) -> Self
pub fn with_override_path(self, override_path: PathBuf) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
Trait Implementations§
Source§impl Clone for TrustConfig
impl Clone for TrustConfig
Source§fn clone(&self) -> TrustConfig
fn clone(&self) -> TrustConfig
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 TrustConfig
impl RefUnwindSafe for TrustConfig
impl Send for TrustConfig
impl Sync for TrustConfig
impl Unpin for TrustConfig
impl UnwindSafe for TrustConfig
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