pub enum PkgRequestSource {
UserRequire,
Bundled(ArcPkgReq),
Dependency(ArcPkgReq),
Refused(ArcPkgReq),
Repository,
}
Expand description
Where a package was requested from
Variants§
UserRequire
This package was required by the user
Bundled(ArcPkgReq)
This package was bundled by another package
Dependency(ArcPkgReq)
This package was depended on by another package
Refused(ArcPkgReq)
This package was refused by another package
Repository
This package was requested by some automatic system
Implementations§
Source§impl PkgRequestSource
impl PkgRequestSource
Sourcepub fn get_source(&self) -> Option<ArcPkgReq>
pub fn get_source(&self) -> Option<ArcPkgReq>
Gets the source package of this package, if any
Sourcepub fn is_user_bundled(&self) -> bool
pub fn is_user_bundled(&self) -> bool
Gets whether this source list is only bundles that lead up to a UserRequire
Trait Implementations§
Source§impl Clone for PkgRequestSource
impl Clone for PkgRequestSource
Source§fn clone(&self) -> PkgRequestSource
fn clone(&self) -> PkgRequestSource
Returns a copy 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 PkgRequestSource
impl Debug for PkgRequestSource
Source§impl<'de> Deserialize<'de> for PkgRequestSource
impl<'de> Deserialize<'de> for PkgRequestSource
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
Source§impl Hash for PkgRequestSource
impl Hash for PkgRequestSource
Source§impl Ord for PkgRequestSource
impl Ord for PkgRequestSource
Source§impl PartialEq for PkgRequestSource
impl PartialEq for PkgRequestSource
Source§impl PartialOrd for PkgRequestSource
impl PartialOrd for PkgRequestSource
Source§impl Serialize for PkgRequestSource
impl Serialize for PkgRequestSource
impl Eq for PkgRequestSource
impl StructuralPartialEq for PkgRequestSource
Auto Trait Implementations§
impl Freeze for PkgRequestSource
impl RefUnwindSafe for PkgRequestSource
impl Send for PkgRequestSource
impl Sync for PkgRequestSource
impl Unpin for PkgRequestSource
impl UnwindSafe for PkgRequestSource
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