pub struct PackageDescriptor {
pub buildpack: PackageDescriptorBuildpackReference,
pub dependencies: Vec<PackageDescriptorDependency>,
pub platform: Platform,
}Expand description
Representation of package.toml.
§Example
use libcnb_data::package_descriptor::PackageDescriptor;
let toml_str = r#"
[buildpack]
uri = "."
[[dependencies]]
uri = "libcnb:buildpack_id"
[[dependencies]]
uri = "../relative/path"
[[dependencies]]
uri = "/absolute/path"
[[dependencies]]
uri = "docker://docker.io/heroku/example:1.2.3"
[platform]
os = "windows"
"#;
toml::from_str::<PackageDescriptor>(toml_str).unwrap();Fields§
§buildpack: PackageDescriptorBuildpackReferenceThe buildpack to package.
dependencies: Vec<PackageDescriptorDependency>A set of dependent buildpack locations, for packaging a composite buildpack.
Each dependent buildpack location must correspond to an order group within the composite buildpack being packaged.
platform: PlatformThe expected runtime environment for the packaged buildpack.
Trait Implementations§
Source§impl Clone for PackageDescriptor
impl Clone for PackageDescriptor
Source§fn clone(&self) -> PackageDescriptor
fn clone(&self) -> PackageDescriptor
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 PackageDescriptor
impl Debug for PackageDescriptor
Source§impl Default for PackageDescriptor
impl Default for PackageDescriptor
Source§impl<'de> Deserialize<'de> for PackageDescriptor
impl<'de> Deserialize<'de> for PackageDescriptor
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 PackageDescriptor
impl RefUnwindSafe for PackageDescriptor
impl Send for PackageDescriptor
impl Sync for PackageDescriptor
impl Unpin for PackageDescriptor
impl UnwindSafe for PackageDescriptor
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