[−][src]Struct rvn::MavenCoordinates
A parsed Maven coordinates record.
Fields
group_id: &'a str
artifact_id: &'a str
packaging: Option<&'a str>
classifier: Option<&'a str>
version: &'a str
Methods
impl<'a> MavenCoordinates<'a>
[src]
pub fn parse(maven_coordinates: &str) -> Option<MavenCoordinates>
[src]
Parse the Maven coordinates from a string.
Examples
use rvn::MavenCoordinates; let coordinates = MavenCoordinates::parse("com.fasterxml.jackson.core:jackson-annotations:2.9.9").unwrap();
pub fn fetch_checksum(
&self,
repository: &str,
algorithm: &str
) -> Result<String, Error>
[src]
&self,
repository: &str,
algorithm: &str
) -> Result<String, Error>
Fetch the checksum associated with the Maven coordinates.
Examples
use rvn::MavenCoordinates; let repository = "https://repo1.maven.org/maven2"; let algorithm = "sha1"; let coordinates = MavenCoordinates::parse("com.fasterxml.jackson.core:jackson-annotations:jar:sources:2.9.9").unwrap(); let checksum = coordinates.fetch_checksum(repository, "sha1").unwrap(); assert_eq!(checksum, "4ac77aa5799fcf00a9cde00cd7da4d08bdc038ff")
Trait Implementations
impl<'a> PartialEq<MavenCoordinates<'a>> for MavenCoordinates<'a>
[src]
fn eq(&self, other: &MavenCoordinates<'a>) -> bool
[src]
fn ne(&self, other: &MavenCoordinates<'a>) -> bool
[src]
impl<'a> Clone for MavenCoordinates<'a>
[src]
fn clone(&self) -> MavenCoordinates<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> Eq for MavenCoordinates<'a>
[src]
impl<'a> Debug for MavenCoordinates<'a>
[src]
Auto Trait Implementations
impl<'a> Send for MavenCoordinates<'a>
impl<'a> Sync for MavenCoordinates<'a>
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> Erased for T
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,