Enum espresso::config::BundleConfig
source · pub enum BundleConfig {
S3Bundle {
access_key: String,
secret_key: String,
endpoint: String,
bucket: String,
region: String,
object_name: String,
},
LocalBundle {
dir: PathBuf,
},
}
Expand description
Bundle configuration.
Specifies where Espresso should retrieve the site bundle from.
Variants
S3Bundle
Fields
access_key: String
secret_key: String
endpoint: String
bucket: String
region: String
AWS Region
This can be left blank for some implementations (Minio, Ceph, etc).
object_name: String
A bundle that is retrieved from an S3-compatible API.
The bundle is expected to be stored in a single tar archive. Espresso will poll the S3 API for any changes by comparing the eTag.
LocalBundle
Fields
dir: PathBuf
A mock-bundle. Uses the provided directory as the serve directory directly.
Trait Implementations
sourceimpl Debug for BundleConfig
impl Debug for BundleConfig
sourceimpl<'de> Deserialize<'de> for BundleConfig
impl<'de> Deserialize<'de> for BundleConfig
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<BundleConfig> for BundleConfig
impl PartialEq<BundleConfig> for BundleConfig
sourcefn eq(&self, other: &BundleConfig) -> bool
fn eq(&self, other: &BundleConfig) -> bool
sourceimpl Serialize for BundleConfig
impl Serialize for BundleConfig
impl StructuralPartialEq for BundleConfig
Auto Trait Implementations
impl RefUnwindSafe for BundleConfig
impl Send for BundleConfig
impl Sync for BundleConfig
impl Unpin for BundleConfig
impl UnwindSafe for BundleConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more