pub struct ProgramRecipe {
pub platforms: BTreeMap<String, PlatformRecipe>,
}Expand description
Author-declared, per-platform install recipe carried on a ProgramDep
inside a SIGNED bundle. Its integrity flows from the bundle signature; its
authorization from the publisher’s trust classification at import.
Fields§
§platforms: BTreeMap<String, PlatformRecipe><arch>-<os> → recipe. Only the current platform’s entry is installed.
Implementations§
Source§impl ProgramRecipe
impl ProgramRecipe
Sourcepub fn for_platform(&self, platform: &str) -> Option<CuratedRecipe>
pub fn for_platform(&self, platform: &str) -> Option<CuratedRecipe>
Convert this recipe’s entry for platform into the Phase 1
CuratedRecipe the installer consumes. None if no entry for the
platform. description is a fixed author-provenance label.
Trait Implementations§
Source§impl Clone for ProgramRecipe
impl Clone for ProgramRecipe
Source§fn clone(&self) -> ProgramRecipe
fn clone(&self) -> ProgramRecipe
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProgramRecipe
impl Debug for ProgramRecipe
Source§impl<'de> Deserialize<'de> for ProgramRecipe
impl<'de> Deserialize<'de> for ProgramRecipe
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 JsonSchema for ProgramRecipe
impl JsonSchema for ProgramRecipe
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ProgramRecipe
impl PartialEq for ProgramRecipe
Source§impl Serialize for ProgramRecipe
impl Serialize for ProgramRecipe
impl StructuralPartialEq for ProgramRecipe
Auto Trait Implementations§
impl Freeze for ProgramRecipe
impl RefUnwindSafe for ProgramRecipe
impl Send for ProgramRecipe
impl Sync for ProgramRecipe
impl Unpin for ProgramRecipe
impl UnsafeUnpin for ProgramRecipe
impl UnwindSafe for ProgramRecipe
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