pub struct ReleaseVariant {
pub name: String,
pub sha256: Option<String>,
}Expand description
A downloadable binary belonging to a Release — a single release asset.
Fields§
§name: StringThe release asset’s file name. For GitHubSource
this is used directly to construct the download URL.
sha256: Option<String>The expected SHA-256 digest of the asset as lowercase hex, if the source provides one. When present, the source verifies the downloaded bytes against it before the update proceeds.
Trait Implementations§
Source§impl Clone for ReleaseVariant
impl Clone for ReleaseVariant
Source§fn clone(&self) -> ReleaseVariant
fn clone(&self) -> ReleaseVariant
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ReleaseVariant
impl Debug for ReleaseVariant
Source§impl Display for ReleaseVariant
impl Display for ReleaseVariant
impl Eq for ReleaseVariant
Source§impl PartialEq for ReleaseVariant
impl PartialEq for ReleaseVariant
Source§fn eq(&self, other: &ReleaseVariant) -> bool
fn eq(&self, other: &ReleaseVariant) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReleaseVariant
Auto Trait Implementations§
impl Freeze for ReleaseVariant
impl RefUnwindSafe for ReleaseVariant
impl Send for ReleaseVariant
impl Sync for ReleaseVariant
impl Unpin for ReleaseVariant
impl UnsafeUnpin for ReleaseVariant
impl UnwindSafe for ReleaseVariant
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