pub enum OriginSpec {
Http(OriginUrl),
Fs(PathBuf),
S3 {
bucket: Option<String>,
},
}Expand description
The [cache.origin] backend --origin asked for, one variant per
OriginConfig kind. Each spelling of the flag value maps to exactly one:
http(s):// → OriginSpec::Http, file:/// → OriginSpec::Fs,
s3 / s3://<bucket> → OriginSpec::S3.
Variants§
Http(OriginUrl)
HTTP(S) pull-through base URL.
Fs(PathBuf)
Local filesystem root (from a file:/// URL).
S3
S3-compatible origin. bucket is None for the bare s3 spelling —
the emitted block then carries a placeholder bucket to edit.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OriginSpec
impl RefUnwindSafe for OriginSpec
impl Send for OriginSpec
impl Sync for OriginSpec
impl Unpin for OriginSpec
impl UnsafeUnpin for OriginSpec
impl UnwindSafe for OriginSpec
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