Enum cargo::core::source::MaybePackage
source · pub enum MaybePackage {
Ready(Package),
Download {
url: String,
descriptor: String,
authorization: Option<String>,
},
}
Expand description
A download status that represents if a Package
has already been
downloaded, or if not then a location to download.
Variants§
Ready(Package)
The Package
is already downloaded.
Download
Fields
Authorization data that may be required to attach when downloading.
Not yet downloaded. Here is the URL to download the Package
from.
Auto Trait Implementations§
impl RefUnwindSafe for MaybePackage
impl !Send for MaybePackage
impl !Sync for MaybePackage
impl Unpin for MaybePackage
impl UnwindSafe for MaybePackage
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