pub struct PartialSiteConfig {
pub site_title: Option<String>,
pub assets_dir: Option<String>,
pub site_description_file: Option<String>,
pub colors: Option<PartialColorConfig>,
pub thumbnails: Option<PartialThumbnailsConfig>,
pub images: Option<PartialImagesConfig>,
pub theme: Option<PartialThemeConfig>,
pub font: Option<PartialFontConfig>,
pub processing: Option<PartialProcessingConfig>,
}Expand description
Partial site configuration for sparse loading and strict validation.
Fields§
§site_title: Option<String>§assets_dir: Option<String>§site_description_file: Option<String>§colors: Option<PartialColorConfig>§thumbnails: Option<PartialThumbnailsConfig>§images: Option<PartialImagesConfig>§theme: Option<PartialThemeConfig>§font: Option<PartialFontConfig>§processing: Option<PartialProcessingConfig>Trait Implementations§
Source§impl Clone for PartialSiteConfig
impl Clone for PartialSiteConfig
Source§fn clone(&self) -> PartialSiteConfig
fn clone(&self) -> PartialSiteConfig
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 PartialSiteConfig
impl Debug for PartialSiteConfig
Source§impl Default for PartialSiteConfig
impl Default for PartialSiteConfig
Source§fn default() -> PartialSiteConfig
fn default() -> PartialSiteConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PartialSiteConfig
impl<'de> Deserialize<'de> for PartialSiteConfig
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 PartialSiteConfig
impl RefUnwindSafe for PartialSiteConfig
impl Send for PartialSiteConfig
impl Sync for PartialSiteConfig
impl Unpin for PartialSiteConfig
impl UnsafeUnpin for PartialSiteConfig
impl UnwindSafe for PartialSiteConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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