Struct tauri::updater::RemoteRelease
source · pub struct RemoteRelease { /* private fields */ }
Available on crate feature
updater
only.Expand description
Information about a release returned by the remote update server.
This type can have one of two shapes: Server Format (Dynamic Format) and Static Format.
Implementations§
source§impl RemoteRelease
impl RemoteRelease
sourcepub fn pub_date(&self) -> Option<&OffsetDateTime>
pub fn pub_date(&self) -> Option<&OffsetDateTime>
The release date.
sourcepub fn download_url(&self, target: &str) -> Result<&Url, Error>
pub fn download_url(&self, target: &str) -> Result<&Url, Error>
The release’s download URL for the given target.
Trait Implementations§
source§impl Debug for RemoteRelease
impl Debug for RemoteRelease
source§impl<'de> Deserialize<'de> for RemoteRelease
impl<'de> Deserialize<'de> for RemoteRelease
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 RemoteRelease
impl RefUnwindSafe for RemoteRelease
impl Send for RemoteRelease
impl Sync for RemoteRelease
impl Unpin for RemoteRelease
impl UnwindSafe for RemoteRelease
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