pub struct PlatformConstraint {
pub os: String,
pub arch: String,
pub runtime: Option<String>,
pub min_versions: HashMap<String, String>,
}Expand description
Platform constraint for a chunk
Fields§
§os: StringTarget OS (any, linux, macos, windows, etc.)
arch: StringTarget architecture (any, x86_64, aarch64, wasm32, etc.)
runtime: Option<String>Required runtime/environment (node, browser, native, etc.)
min_versions: HashMap<String, String>Minimum version requirements
Trait Implementations§
Source§impl Clone for PlatformConstraint
impl Clone for PlatformConstraint
Source§fn clone(&self) -> PlatformConstraint
fn clone(&self) -> PlatformConstraint
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 PlatformConstraint
impl Debug for PlatformConstraint
Source§impl Default for PlatformConstraint
impl Default for PlatformConstraint
Source§impl<'de> Deserialize<'de> for PlatformConstraint
impl<'de> Deserialize<'de> for PlatformConstraint
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 PlatformConstraint
impl RefUnwindSafe for PlatformConstraint
impl Send for PlatformConstraint
impl Sync for PlatformConstraint
impl Unpin for PlatformConstraint
impl UnwindSafe for PlatformConstraint
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