pub struct SnapshotMetadata {
pub group_id: String,
pub artifact_id: String,
pub version: String,
pub versioning: SnapshotVersioning,
}
Expand description
The metadata for a snapshot.
File name: maven-metadata.xml
Fields§
§group_id: String
§artifact_id: String
§version: String
§versioning: SnapshotVersioning
Implementations§
Source§impl SnapshotMetadata
impl SnapshotMetadata
Sourcepub fn get_latest_artifact_name(
&self,
extension: impl Into<MavenFileExtension>,
) -> Option<String>
pub fn get_latest_artifact_name( &self, extension: impl Into<MavenFileExtension>, ) -> Option<String>
Returns None if the version is not found in the metadata.
Trait Implementations§
Source§impl Clone for SnapshotMetadata
impl Clone for SnapshotMetadata
Source§fn clone(&self) -> SnapshotMetadata
fn clone(&self) -> SnapshotMetadata
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 SnapshotMetadata
impl Debug for SnapshotMetadata
Source§impl<'de> Deserialize<'de> for SnapshotMetadata
impl<'de> Deserialize<'de> for SnapshotMetadata
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
Auto Trait Implementations§
impl Freeze for SnapshotMetadata
impl RefUnwindSafe for SnapshotMetadata
impl Send for SnapshotMetadata
impl Sync for SnapshotMetadata
impl Unpin for SnapshotMetadata
impl UnwindSafe for SnapshotMetadata
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