pub struct MavenPackage { /* private fields */ }Expand description
A handle to one maven artifact. Coords authoritative (from group_id/
artifact_id/version columns). Bytes lazy via MavenPackage::bytes.
Implementations§
Source§impl MavenPackage
impl MavenPackage
Sourcepub fn classifier(&self) -> Option<&str>
pub fn classifier(&self) -> Option<&str>
The classifier (sources, javadoc, …) or None for the primary artifact.
Sourcepub fn coords(&self) -> (&str, &str, &str, Option<&str>)
pub fn coords(&self) -> (&str, &str, &str, Option<&str>)
(group, artifact, version, classifier?) — authoritative coords.
pub fn size(&self) -> u64
pub fn into_bytes(self) -> Result<Vec<u8>>
Auto Trait Implementations§
impl Freeze for MavenPackage
impl RefUnwindSafe for MavenPackage
impl Send for MavenPackage
impl Sync for MavenPackage
impl Unpin for MavenPackage
impl UnsafeUnpin for MavenPackage
impl UnwindSafe for MavenPackage
Blanket Implementations§
impl<T> Allocation for T
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