pub struct Requires {
pub os_min: Option<String>,
pub glibc_min: Option<String>,
pub libs: Option<Vec<String>>,
pub bin: Vec<RequiredBin>,
}Expand description
What the host must already provide, by names the operating system defines, so a consumer can check before installing. Nothing here names another project or where to get it; see the specification’s Host requirements section.
Fields§
§os_min: Option<String>Minimum OS version, in the OS’s own terms: 12 for macOS Monterey,
10.0.17763 for Windows.
glibc_min: Option<String>Minimum glibc for a gnu Linux build, such as 2.31.
libs: Option<Vec<String>>Shared libraries the executables load from the host, by the name
the loader resolves: a soname (libssl.so.3), a DLL name
(vcruntime140.dll), or a dylib name (libssl.3.dylib). Excludes
the C runtime baseline that libc and glibc_min cover and any
library the artifact ships itself. packslip create reads it from
the executables; an empty list means they were read and need
nothing, an absent one that nothing was checked.
bin: Vec<RequiredBin>Commands the executables run and cannot work without, by the bare name on PATH, with an optional minimum version. Declared by the vendor.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Requires
impl<'de> Deserialize<'de> for Requires
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>,
impl Eq for Requires
Source§impl JsonSchema for Requires
impl JsonSchema for Requires
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreimpl StructuralPartialEq for Requires
Auto Trait Implementations§
impl Freeze for Requires
impl RefUnwindSafe for Requires
impl Send for Requires
impl Sync for Requires
impl Unpin for Requires
impl UnsafeUnpin for Requires
impl UnwindSafe for Requires
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
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
key and return true if they are equal.