pub struct Site {Show 15 fields
pub schema_version: u32,
pub kind: String,
pub site: SiteInfo,
pub scheduler: Scheduler,
pub phase_defaults: Option<PhaseArgs>,
pub targets: Vec<Target>,
pub filesystems: Filesystems,
pub admission: Option<Admission>,
pub shards: Option<Shards>,
pub sources: Option<Sources>,
pub modules: Modules,
pub caches: Option<Caches>,
pub logs: Option<Logs>,
pub rebuild: Option<Rebuild>,
pub licences: Option<Licences>,
}Expand description
A site file.
Fields§
§schema_version: u32Schema version; 1.
kind: StringFile kind; site.
site: SiteInfoSite identity and tools.
scheduler: SchedulerScheduler launch settings.
phase_defaults: Option<PhaseArgs>Launch arguments per phase role.
targets: Vec<Target>Node types; at least one.
filesystems: FilesystemsPaths.
admission: Option<Admission>Inode admission.
shards: Option<Shards>Shard planning.
sources: Option<Sources>Source prefetch.
modules: ModulesEnvironment modules.
caches: Option<Caches>Module caches.
logs: Option<Logs>Log handling.
rebuild: Option<Rebuild>Staged rebuild.
licences: Option<Licences>Licence enforcement.
Implementations§
Source§impl Site
impl Site
Sourcepub fn admission_on(&self) -> Option<&Admission>
pub fn admission_on(&self) -> Option<&Admission>
Admission section when active.
Sourcepub fn sources_on(&self) -> Option<&Sources>
pub fn sources_on(&self) -> Option<&Sources>
Sources section when it prefetches.
Sourcepub fn rebuild_on(&self) -> Option<&Rebuild>
pub fn rebuild_on(&self) -> Option<&Rebuild>
Rebuild section when active and staged is set in it or on a target.
Sourcepub fn licences_on(&self) -> Option<&Licences>
pub fn licences_on(&self) -> Option<&Licences>
Licences section when active and enforced.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Site
impl<'de> Deserialize<'de> for Site
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
impl StructuralPartialEq for Site
Auto Trait Implementations§
impl Freeze for Site
impl RefUnwindSafe for Site
impl Send for Site
impl Sync for Site
impl Unpin for Site
impl UnwindSafe for Site
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