pub enum DependencyResourcePurposeV1 {
LoaderEssential,
Nonessential,
TargetOnly,
}Expand description
Format-neutral consumer purpose derived from a source resource kind.
Variants§
LoaderEssential
The loader requires these bytes to construct its normalized document.
Nonessential
The declaration is retained, but absence need not fail document loading.
TargetOnly
The declaration is relevant only to a later target/importer workflow.
Trait Implementations§
Source§impl Clone for DependencyResourcePurposeV1
impl Clone for DependencyResourcePurposeV1
Source§fn clone(&self) -> DependencyResourcePurposeV1
fn clone(&self) -> DependencyResourcePurposeV1
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 moreimpl Copy for DependencyResourcePurposeV1
Source§impl Debug for DependencyResourcePurposeV1
impl Debug for DependencyResourcePurposeV1
Source§impl<'de> Deserialize<'de> for DependencyResourcePurposeV1
impl<'de> Deserialize<'de> for DependencyResourcePurposeV1
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 DependencyResourcePurposeV1
Source§impl Ord for DependencyResourcePurposeV1
impl Ord for DependencyResourcePurposeV1
Source§fn cmp(&self, other: &DependencyResourcePurposeV1) -> Ordering
fn cmp(&self, other: &DependencyResourcePurposeV1) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for DependencyResourcePurposeV1
impl PartialOrd for DependencyResourcePurposeV1
impl StructuralPartialEq for DependencyResourcePurposeV1
Auto Trait Implementations§
impl Freeze for DependencyResourcePurposeV1
impl RefUnwindSafe for DependencyResourcePurposeV1
impl Send for DependencyResourcePurposeV1
impl Sync for DependencyResourcePurposeV1
impl Unpin for DependencyResourcePurposeV1
impl UnsafeUnpin for DependencyResourcePurposeV1
impl UnwindSafe for DependencyResourcePurposeV1
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