pub enum AssetStrategy {
Copy,
Embed,
Upload,
External,
}Expand description
Strategy for handling assets on each platform.
Variants§
Copy
Copy files alongside content (e.g., Astro).
Embed
Embed as base64 in HTML.
Upload
Upload to platform storage (e.g., Confluence attachments).
External
Upload to external S3-compatible storage. Per [[RFC-0004:C-EXTERNAL-STRATEGY]].
Implementations§
Source§impl AssetStrategy
impl AssetStrategy
Sourcepub fn parse(s: &str) -> Option<Self>
pub fn parse(s: &str) -> Option<Self>
Parse a user-provided asset strategy string (case-insensitive).
Sourcepub fn requires_deferred_upload(&self) -> bool
pub fn requires_deferred_upload(&self) -> bool
Returns true if this strategy requires deferred upload during Materialize stage.
Per [[RFC-0004:C-PIPELINE-INTEGRATION]], both Upload and External require
placeholder tokens in Finalize and actual upload in Materialize.
Trait Implementations§
Source§impl Clone for AssetStrategy
impl Clone for AssetStrategy
Source§fn clone(&self) -> AssetStrategy
fn clone(&self) -> AssetStrategy
Returns a duplicate of the value. Read more
1.0.0 · 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 AssetStrategy
impl Debug for AssetStrategy
Source§impl<'de> Deserialize<'de> for AssetStrategy
impl<'de> Deserialize<'de> for AssetStrategy
Source§fn 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
Source§impl PartialEq for AssetStrategy
impl PartialEq for AssetStrategy
Source§impl Serialize for AssetStrategy
impl Serialize for AssetStrategy
impl Copy for AssetStrategy
impl Eq for AssetStrategy
impl StructuralPartialEq for AssetStrategy
Auto Trait Implementations§
impl Freeze for AssetStrategy
impl RefUnwindSafe for AssetStrategy
impl Send for AssetStrategy
impl Sync for AssetStrategy
impl Unpin for AssetStrategy
impl UnsafeUnpin for AssetStrategy
impl UnwindSafe for AssetStrategy
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