pub struct GitHubAsset {
pub name: String,
pub size: u64,
pub browser_download_url: String,
pub digest: Option<String>,
}Expand description
A single asset on a release, mirroring the /releases API shape.
Fields§
§name: String§size: u64§browser_download_url: String§digest: Option<String>sha256:<hex> when present (GitHub added it in 2024); older releases
have no digest at all.
Trait Implementations§
Source§impl Clone for GitHubAsset
impl Clone for GitHubAsset
Source§impl Debug for GitHubAsset
impl Debug for GitHubAsset
Source§impl<'de> Deserialize<'de> for GitHubAsset
impl<'de> Deserialize<'de> for GitHubAsset
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
impl Eq for GitHubAsset
Source§impl PartialEq for GitHubAsset
impl PartialEq for GitHubAsset
Source§impl Serialize for GitHubAsset
impl Serialize for GitHubAsset
impl StructuralPartialEq for GitHubAsset
Auto Trait Implementations§
impl Forget for GitHubAsset
impl Freeze for GitHubAsset
impl Move for GitHubAsset
impl RefUnwindSafe for GitHubAsset
impl Send for GitHubAsset
impl Sync for GitHubAsset
impl Unpin for GitHubAsset
impl UnsafeUnpin for GitHubAsset
impl UnwindSafe for GitHubAsset
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.