pub struct InstallerPresentationV1 {
pub schema_version: u32,
pub mode: InstallerPresentationModeV1,
}Expand description
Strict versioned staging installer policy owned by the staging layer.
GeneratedDefaultpreserves M003a behavior byte-for-byte: generated exact-release installers are staged as the publicinstall.sh/install.ps1.ProductWrappersstages four installer assets: consumer-owned wrapper bytes copied exactly as the publicinstall.sh/install.ps1, plus Eggpack-generated exact installers under configured non-colliding names (eggsact:install-exact.sh/install-exact.ps1).
Fields§
§schema_version: u32Schema version, exactly 1.
mode: InstallerPresentationModeV1Presentation mode.
Implementations§
Source§impl InstallerPresentationV1
impl InstallerPresentationV1
Sourcepub fn generated_default() -> Self
pub fn generated_default() -> Self
Generated-default presentation (M003a behavior).
Sourcepub fn from_json(text: &str) -> Result<Self, GithubError>
pub fn from_json(text: &str) -> Result<Self, GithubError>
Parse a strict bounded JSON presentation document.
Sourcepub fn to_json(&self) -> Result<String, GithubError>
pub fn to_json(&self) -> Result<String, GithubError>
Serialize deterministically after validation.
Sourcepub fn validate(&self) -> Result<(), GithubError>
pub fn validate(&self) -> Result<(), GithubError>
Validate schema version, wrapper paths, and generated names.
Trait Implementations§
Source§impl Clone for InstallerPresentationV1
impl Clone for InstallerPresentationV1
Source§impl Debug for InstallerPresentationV1
impl Debug for InstallerPresentationV1
Source§impl<'de> Deserialize<'de> for InstallerPresentationV1
impl<'de> Deserialize<'de> for InstallerPresentationV1
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 Eq for InstallerPresentationV1
Source§impl PartialEq for InstallerPresentationV1
impl PartialEq for InstallerPresentationV1
Source§impl Serialize for InstallerPresentationV1
impl Serialize for InstallerPresentationV1
impl StructuralPartialEq for InstallerPresentationV1
Auto Trait Implementations§
impl Forget for InstallerPresentationV1
impl Freeze for InstallerPresentationV1
impl Move for InstallerPresentationV1
impl RefUnwindSafe for InstallerPresentationV1
impl Send for InstallerPresentationV1
impl Sync for InstallerPresentationV1
impl Unpin for InstallerPresentationV1
impl UnsafeUnpin for InstallerPresentationV1
impl UnwindSafe for InstallerPresentationV1
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.