pub struct RemoteVersion {
pub version: Version,
pub checksum: String,
pub size: usize,
pub path: String,
pub datetime: DateTime<Utc>,
}Expand description
Deserialized object of the remote json file, used to check for updates Example:
{
"version": "2.0.0",
"datetime": "2024-01-14T14:40:43+0100",
"checksum": "726b934c8263868090490cf626b25770bbbbc98900689af512eddf9c33e9f785",
"size": 5538631,
"path": "./aarch64-apple-darwin/2.0.0/my_binary.tgz"
}Fields§
§version: Versionversion of the remote update file
checksum: Stringthe SHA-256 checksum of the file “path”
size: usizethe size in bytes of the file “path”
path: Stringupdate path, relative to the repository base url (Repository::get_base_url)
datetime: DateTime<Utc>file published datetime
Trait Implementations§
Source§impl Debug for RemoteVersion
impl Debug for RemoteVersion
Source§impl<'de> Deserialize<'de> for RemoteVersion
impl<'de> Deserialize<'de> for RemoteVersion
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 RemoteVersion
impl RefUnwindSafe for RemoteVersion
impl Send for RemoteVersion
impl Sync for RemoteVersion
impl Unpin for RemoteVersion
impl UnwindSafe for RemoteVersion
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