pub struct HttpBackendConfig {
pub base_url: String,
pub prefix: String,
pub auth_header: Option<String>,
pub conditional_writes: bool,
}Expand description
Configuration for the generic HTTP backend.
Fields§
§base_url: StringBase URL (e.g. https://storage.example.com). No trailing slash.
prefix: StringPrefix prepended to every key (e.g. databases/prod/).
Empty string means “no prefix”.
auth_header: Option<String>Optional Authorization: <value> header. None means no auth.
conditional_writes: boolWhether the server supports ETag + If-Match / If-None-Match.
Implementations§
Source§impl HttpBackendConfig
impl HttpBackendConfig
pub fn new(base_url: impl Into<String>) -> Self
pub fn with_prefix(self, prefix: impl Into<String>) -> Self
pub fn with_auth_header(self, value: impl Into<String>) -> Self
pub fn with_conditional_writes(self, enabled: bool) -> Self
Trait Implementations§
Source§impl Clone for HttpBackendConfig
impl Clone for HttpBackendConfig
Source§fn clone(&self) -> HttpBackendConfig
fn clone(&self) -> HttpBackendConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HttpBackendConfig
impl RefUnwindSafe for HttpBackendConfig
impl Send for HttpBackendConfig
impl Sync for HttpBackendConfig
impl Unpin for HttpBackendConfig
impl UnsafeUnpin for HttpBackendConfig
impl UnwindSafe for HttpBackendConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§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