pub struct GithubAsset {
pub name: String,
pub url: String,
}Fields§
§name: String§url: StringTrait Implementations§
Source§impl Clone for GithubAsset
impl Clone for GithubAsset
Source§fn clone(&self) -> GithubAsset
fn clone(&self) -> GithubAsset
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 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
Source§impl Display for GithubAsset
impl Display for GithubAsset
Source§impl Hash for GithubAsset
impl Hash for GithubAsset
Source§impl PartialEq for GithubAsset
impl PartialEq for GithubAsset
Source§impl ReleaseAsset for GithubAsset
impl ReleaseAsset for GithubAsset
Source§fn get_download_url(&self) -> &str
fn get_download_url(&self) -> &str
Gets asset download url
Source§fn download(
&self,
additional_headers: Vec<(&str, &str)>,
download_callback: Option<impl Fn(f32)>,
) -> Result<(), Error>
fn download( &self, additional_headers: Vec<(&str, &str)>, download_callback: Option<impl Fn(f32)>, ) -> Result<(), Error>
Downloads asset.
This function can be used directly or with the api through which the asset was fetched.
You may want to use it with the api for automatically passing the token Read more
impl Eq for GithubAsset
impl StructuralPartialEq for GithubAsset
Auto Trait Implementations§
impl Freeze for GithubAsset
impl RefUnwindSafe for GithubAsset
impl Send for GithubAsset
impl Sync for GithubAsset
impl Unpin 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