#[non_exhaustive]pub struct DetailedUpdateInfo {
pub current: String,
pub latest: String,
pub message: Option<String>,
}Expand description
Extended update information with optional message and response data.
Returned by UpdateChecker::check_detailed. Contains the same version
information as UpdateInfo plus additional metadata.
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.current: StringThe currently running version.
latest: StringThe latest available version on crates.io.
message: Option<String>An optional message from the crate author.
Populated when UpdateChecker::message_url is configured and the
message was successfully fetched. The message is plain text, trimmed,
and truncated to 4KB.
Trait Implementations§
Source§impl Clone for DetailedUpdateInfo
impl Clone for DetailedUpdateInfo
Source§fn clone(&self) -> DetailedUpdateInfo
fn clone(&self) -> DetailedUpdateInfo
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 DetailedUpdateInfo
impl Debug for DetailedUpdateInfo
Source§impl From<DetailedUpdateInfo> for UpdateInfo
impl From<DetailedUpdateInfo> for UpdateInfo
Source§fn from(info: DetailedUpdateInfo) -> Self
fn from(info: DetailedUpdateInfo) -> Self
Converts to this type from the input type.
Source§impl From<UpdateInfo> for DetailedUpdateInfo
impl From<UpdateInfo> for DetailedUpdateInfo
Source§fn from(info: UpdateInfo) -> Self
fn from(info: UpdateInfo) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DetailedUpdateInfo
impl PartialEq for DetailedUpdateInfo
impl Eq for DetailedUpdateInfo
impl StructuralPartialEq for DetailedUpdateInfo
Auto Trait Implementations§
impl Freeze for DetailedUpdateInfo
impl RefUnwindSafe for DetailedUpdateInfo
impl Send for DetailedUpdateInfo
impl Sync for DetailedUpdateInfo
impl Unpin for DetailedUpdateInfo
impl UnsafeUnpin for DetailedUpdateInfo
impl UnwindSafe for DetailedUpdateInfo
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