pub struct AssetBackendConfig {
pub kind: AssetBackendKind,
pub bucket: String,
pub client_prefix: String,
pub sim_prefix: String,
pub local_root: PathBuf,
pub s3_region: String,
pub s3_endpoint: Option<String>,
pub index_url_override: Option<String>,
}Fields§
§kind: AssetBackendKind§bucket: StringGCS/Firebase or S3 bucket name.
client_prefix: StringObject key prefix for client gfx packs (default flatland3/client-assets).
sim_prefix: StringObject key prefix for sim content packs (default flatland3/sim-content).
local_root: PathBufLocal published root when kind == Local.
s3_region: StringS3 region (default us-east-1).
s3_endpoint: Option<String>Optional S3 endpoint (MinIO/R2), e.g. https://minio.example:9000.
index_url_override: Option<String>Override for client latest.json fetch URL.
Implementations§
Source§impl AssetBackendConfig
impl AssetBackendConfig
pub fn from_env() -> Self
pub fn client_index_object(&self) -> String
pub fn sim_index_object(&self) -> String
Sourcepub fn client_index_url(&self) -> String
pub fn client_index_url(&self) -> String
HTTPS (or file://) URL for the client latest.json index.
pub fn sim_index_url(&self) -> String
pub fn client_object_key(&self, publish_rev: u64, relative: &str) -> String
pub fn sim_object_key(&self, publish_rev: u64, relative: &str) -> String
Sourcepub fn object_url(&self, object_key: &str) -> String
pub fn object_url(&self, object_key: &str) -> String
Public fetch URL for an object key.
pub fn local_object_path(&self, object_key: &str) -> PathBuf
Trait Implementations§
Source§impl Clone for AssetBackendConfig
impl Clone for AssetBackendConfig
Source§fn clone(&self) -> AssetBackendConfig
fn clone(&self) -> AssetBackendConfig
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 moreSource§impl Debug for AssetBackendConfig
impl Debug for AssetBackendConfig
Auto Trait Implementations§
impl Freeze for AssetBackendConfig
impl RefUnwindSafe for AssetBackendConfig
impl Send for AssetBackendConfig
impl Sync for AssetBackendConfig
impl Unpin for AssetBackendConfig
impl UnsafeUnpin for AssetBackendConfig
impl UnwindSafe for AssetBackendConfig
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