#[non_exhaustive]pub struct PackageVersionHistory {
pub package_version: Option<String>,
pub commit_message: Option<String>,
pub created_at: Option<DateTime>,
}
Expand description
Details of a package version.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.package_version: Option<String>
Version of the package.
commit_message: Option<String>
A message associated with the version.
created_at: Option<DateTime>
Timestamp which tells creation time of the package version.
Implementations§
source§impl PackageVersionHistory
impl PackageVersionHistory
sourcepub fn package_version(&self) -> Option<&str>
pub fn package_version(&self) -> Option<&str>
Version of the package.
sourcepub fn commit_message(&self) -> Option<&str>
pub fn commit_message(&self) -> Option<&str>
A message associated with the version.
sourcepub fn created_at(&self) -> Option<&DateTime>
pub fn created_at(&self) -> Option<&DateTime>
Timestamp which tells creation time of the package version.
source§impl PackageVersionHistory
impl PackageVersionHistory
sourcepub fn builder() -> PackageVersionHistoryBuilder
pub fn builder() -> PackageVersionHistoryBuilder
Creates a new builder-style object to manufacture PackageVersionHistory
.
Trait Implementations§
source§impl Clone for PackageVersionHistory
impl Clone for PackageVersionHistory
source§fn clone(&self) -> PackageVersionHistory
fn clone(&self) -> PackageVersionHistory
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 PackageVersionHistory
impl Debug for PackageVersionHistory
source§impl PartialEq for PackageVersionHistory
impl PartialEq for PackageVersionHistory
source§fn eq(&self, other: &PackageVersionHistory) -> bool
fn eq(&self, other: &PackageVersionHistory) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PackageVersionHistory
Auto Trait Implementations§
impl RefUnwindSafe for PackageVersionHistory
impl Send for PackageVersionHistory
impl Sync for PackageVersionHistory
impl Unpin for PackageVersionHistory
impl UnwindSafe for PackageVersionHistory
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.