pub enum Dependency<T> {
Include(T),
Import(T),
Override(T),
Redefine(T),
}Expand description
Represents the different types of dependencies a schema can have on another schema.
Variants§
Include(T)
The schema is included by another schema.
Import(T)
The schema is imported by another schema.
Override(T)
The schema is overridden by another schema.
Redefine(T)
The schema is redefined by another schema.
Implementations§
Source§impl<T> Dependency<T>
impl<T> Dependency<T>
Sourcepub fn map<F, U>(self, f: F) -> Dependency<U>where
F: FnOnce(T) -> U,
pub fn map<F, U>(self, f: F) -> Dependency<U>where
F: FnOnce(T) -> U,
Maps the inner value of this dependency to another type using the provided function f.
Trait Implementations§
Source§impl<T> AsRef<T> for Dependency<T>
impl<T> AsRef<T> for Dependency<T>
Source§impl<T: Clone> Clone for Dependency<T>
impl<T: Clone> Clone for Dependency<T>
Source§fn clone(&self) -> Dependency<T>
fn clone(&self) -> Dependency<T>
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<T: Debug> Debug for Dependency<T>
impl<T: Debug> Debug for Dependency<T>
Source§impl<T> Deref for Dependency<T>
impl<T> Deref for Dependency<T>
Source§impl<T: Hash> Hash for Dependency<T>
impl<T: Hash> Hash for Dependency<T>
Source§impl<T: Ord> Ord for Dependency<T>
impl<T: Ord> Ord for Dependency<T>
Source§fn cmp(&self, other: &Dependency<T>) -> Ordering
fn cmp(&self, other: &Dependency<T>) -> Ordering
1.21.0 · 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<T: PartialEq> PartialEq for Dependency<T>
impl<T: PartialEq> PartialEq for Dependency<T>
Source§impl<T: PartialOrd> PartialOrd for Dependency<T>
impl<T: PartialOrd> PartialOrd for Dependency<T>
impl<T: Copy> Copy for Dependency<T>
impl<T: Eq> Eq for Dependency<T>
impl<T> StructuralPartialEq for Dependency<T>
Auto Trait Implementations§
impl<T> Freeze for Dependency<T>where
T: Freeze,
impl<T> RefUnwindSafe for Dependency<T>where
T: RefUnwindSafe,
impl<T> Send for Dependency<T>where
T: Send,
impl<T> Sync for Dependency<T>where
T: Sync,
impl<T> Unpin for Dependency<T>where
T: Unpin,
impl<T> UnsafeUnpin for Dependency<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Dependency<T>where
T: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
Compare self to
key and return true if they are equal.