pub struct TransactionRow {
pub package: String,
pub old_version: String,
pub new_version: Option<String>,
pub net_change: SignedByteEstimate,
pub download: ByteEstimate,
}Fields§
§package: String§old_version: String§new_version: Option<String>§net_change: SignedByteEstimate§download: ByteEstimateImplementations§
Source§impl TransactionRow
impl TransactionRow
pub fn new( package: impl Into<String>, old_version: impl Into<String>, new_version: impl Into<String>, net_change: SignedByteEstimate, download: ByteEstimate, ) -> Self
pub fn single_version( package: impl Into<String>, version: impl Into<String>, net_change: SignedByteEstimate, download: ByteEstimate, ) -> Self
Trait Implementations§
Source§impl From<&RollbackPreviewRow> for TransactionRow
impl From<&RollbackPreviewRow> for TransactionRow
Source§fn from(row: &RollbackPreviewRow) -> Self
fn from(row: &RollbackPreviewRow) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TransactionRow
impl RefUnwindSafe for TransactionRow
impl Send for TransactionRow
impl Sync for TransactionRow
impl Unpin for TransactionRow
impl UnsafeUnpin for TransactionRow
impl UnwindSafe for TransactionRow
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more