#[non_exhaustive]pub struct UpgradeDetails {
pub state: State,
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub initial_version: String,
pub target_version: String,
pub start_type: StartType,
/* private fields */
}Expand description
UpgradeDetails contains detailed information of each individual upgrade operation.
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.state: StateOutput only. The state of the upgrade.
start_time: Option<Timestamp>The start timestamp of the upgrade.
end_time: Option<Timestamp>The end timestamp of the upgrade.
initial_version: StringThe version before the upgrade.
target_version: StringThe version after the upgrade.
start_type: StartTypeThe start type of the upgrade.
Implementations§
Source§impl UpgradeDetails
impl UpgradeDetails
pub fn new() -> Self
Sourcepub fn set_start_time<T>(self, v: T) -> Self
pub fn set_start_time<T>(self, v: T) -> Self
Sets the value of start_time.
Sourcepub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of start_time.
Sourcepub fn set_end_time<T>(self, v: T) -> Self
pub fn set_end_time<T>(self, v: T) -> Self
Sets the value of end_time.
Sourcepub fn set_or_clear_end_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_end_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of end_time.
Sourcepub fn set_initial_version<T: Into<String>>(self, v: T) -> Self
pub fn set_initial_version<T: Into<String>>(self, v: T) -> Self
Sets the value of initial_version.
Sourcepub fn set_target_version<T: Into<String>>(self, v: T) -> Self
pub fn set_target_version<T: Into<String>>(self, v: T) -> Self
Sets the value of target_version.
Sourcepub fn set_start_type<T: Into<StartType>>(self, v: T) -> Self
pub fn set_start_type<T: Into<StartType>>(self, v: T) -> Self
Sets the value of start_type.
Trait Implementations§
Source§impl Clone for UpgradeDetails
impl Clone for UpgradeDetails
Source§fn clone(&self) -> UpgradeDetails
fn clone(&self) -> UpgradeDetails
Returns a duplicate 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 UpgradeDetails
impl Debug for UpgradeDetails
Source§impl Default for UpgradeDetails
impl Default for UpgradeDetails
Source§fn default() -> UpgradeDetails
fn default() -> UpgradeDetails
Returns the “default value” for a type. Read more
Source§impl Message for UpgradeDetails
impl Message for UpgradeDetails
Source§impl PartialEq for UpgradeDetails
impl PartialEq for UpgradeDetails
impl StructuralPartialEq for UpgradeDetails
Auto Trait Implementations§
impl Freeze for UpgradeDetails
impl RefUnwindSafe for UpgradeDetails
impl Send for UpgradeDetails
impl Sync for UpgradeDetails
impl Unpin for UpgradeDetails
impl UnwindSafe for UpgradeDetails
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