pub struct S3OriginBuilder { /* private fields */ }
Implementations§
Source§impl S3OriginBuilder
impl S3OriginBuilder
pub fn new() -> Self
Sourcepub fn prefix(self, prefix: impl Into<String>) -> Self
pub fn prefix(self, prefix: impl Into<String>) -> Self
Set the bucket prefix.
This is optional, and defaults to an empty string.
Sourcepub fn client(self, client: S3Client) -> Self
pub fn client(self, client: S3Client) -> Self
Set the S3 client.
This is optional, and defaults to a new client created from the AWS SDK config.
Sourcepub fn prune_path(self, prune_path: usize) -> Self
pub fn prune_path(self, prune_path: usize) -> Self
Number of path components to remove from the request path.
This is useful for removing the bucket and prefix from the request path.
For example, if the request path is /stage/my-app/static/deployment/index.html
,
and the prune_path is 3, then the search key will be {bucket}/{bucket_prefix/}deployment/index.html
.
Sourcepub fn config(self, config: AwsSdkConfig) -> Self
pub fn config(self, config: AwsSdkConfig) -> Self
Set the AWS SDK config.
This is optional, and defaults to a new client created from the AWS SDK config.
If client
is not provided, the AWS SDK config must be provided.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for S3OriginBuilder
impl !RefUnwindSafe for S3OriginBuilder
impl Send for S3OriginBuilder
impl Sync for S3OriginBuilder
impl Unpin for S3OriginBuilder
impl !UnwindSafe for S3OriginBuilder
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 moreCreates a shared type from an unshared type.