pub struct PostPlatformConfig {
pub published: Option<bool>,
pub internal_link_target: Option<String>,
pub extra: HashMap<String, Value>,
}Expand description
Per-post platform configuration (overrides global)
Fields§
§published: Option<bool>Per-content platform-specific published setting (layer 1 per [[RFC-0005:C-RESOLUTION-ORDER]])
internal_link_target: Option<String>Per-content platform-specific internal link target (layer 1 in resolution chain)
extra: HashMap<String, Value>Implementations§
Source§impl PostPlatformConfig
impl PostPlatformConfig
Sourcepub fn get_str(&self, key: &str) -> Option<String>
pub fn get_str(&self, key: &str) -> Option<String>
Get a string value from config, expanding environment variables.
Supports shell-like variable substitution via the subst crate:
$VARor${VAR}— substitute from environment${VAR:default}— use default if VAR is unset
Sourcepub fn get_str_raw(&self, key: &str) -> Option<&str>
pub fn get_str_raw(&self, key: &str) -> Option<&str>
Get a raw string value without environment variable expansion.
Trait Implementations§
Source§impl Clone for PostPlatformConfig
impl Clone for PostPlatformConfig
Source§fn clone(&self) -> PostPlatformConfig
fn clone(&self) -> PostPlatformConfig
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 PostPlatformConfig
impl Debug for PostPlatformConfig
Source§impl<'de> Deserialize<'de> for PostPlatformConfig
impl<'de> Deserialize<'de> for PostPlatformConfig
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
Auto Trait Implementations§
impl Freeze for PostPlatformConfig
impl RefUnwindSafe for PostPlatformConfig
impl Send for PostPlatformConfig
impl Sync for PostPlatformConfig
impl Unpin for PostPlatformConfig
impl UnsafeUnpin for PostPlatformConfig
impl UnwindSafe for PostPlatformConfig
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