pub struct S3Target {
pub endpoint: String,
pub bucket: String,
pub access_key: String,
pub secret_key: String,
pub region: Option<String>,
}Expand description
S3 backend coordinates for spawning S3-backed gonzalod replicas.
Fields§
§endpoint: String§bucket: String§access_key: String§secret_key: String§region: Option<String>Implementations§
Source§impl S3Target
impl S3Target
Sourcepub fn from_env(get: impl Fn(&str) -> Option<String>) -> Option<Self>
pub fn from_env(get: impl Fn(&str) -> Option<String>) -> Option<Self>
Resolve from an env accessor. Returns None (→ skip) unless the endpoint,
bucket, and AWS credentials are all present. Region is optional.
Sourcepub fn from_process_env() -> Option<Self>
pub fn from_process_env() -> Option<Self>
Resolve from the process environment, or None to skip.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for S3Target
impl RefUnwindSafe for S3Target
impl Send for S3Target
impl Sync for S3Target
impl Unpin for S3Target
impl UnsafeUnpin for S3Target
impl UnwindSafe for S3Target
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,
§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