pub struct BinaryCacheStoreBuilder { /* private fields */ }Expand description
Builder for BinaryCacheStore.
Implementations§
Source§impl BinaryCacheStoreBuilder
impl BinaryCacheStoreBuilder
Sourcepub fn trusted_keys(self, keys: Vec<String>) -> Self
pub fn trusted_keys(self, keys: Vec<String>) -> Self
Set the trusted public keys for signature verification.
Sourcepub fn http_client(self, client: Box<dyn HttpClient>) -> Self
pub fn http_client(self, client: Box<dyn HttpClient>) -> Self
Use a custom HTTP client implementation (e.g., for testing).
Sourcepub fn auth_header(self, scheme: &str, credentials: &str) -> Self
pub fn auth_header(self, scheme: &str, credentials: &str) -> Self
Set an authorization header (e.g., ("Bearer", "<token>") for Attic).
Sourcepub fn build(self) -> BinaryCacheStore
pub fn build(self) -> BinaryCacheStore
Build the BinaryCacheStore.
Auto Trait Implementations§
impl !RefUnwindSafe for BinaryCacheStoreBuilder
impl !UnwindSafe for BinaryCacheStoreBuilder
impl Freeze for BinaryCacheStoreBuilder
impl Send for BinaryCacheStoreBuilder
impl Sync for BinaryCacheStoreBuilder
impl Unpin for BinaryCacheStoreBuilder
impl UnsafeUnpin for BinaryCacheStoreBuilder
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more