pub struct RemoteAsset {
pub id: u64,
pub name: String,
pub size: u64,
pub sha256: Option<String>,
pub download_url: String,
}Expand description
Existing remote asset identity.
Fields§
§id: u64Forge identifier of the asset.
name: StringUploaded file name.
size: u64Size in bytes.
sha256: Option<String>Digest as sha256:<hex>, when the forge reports one.
download_url: StringWhere the bytes can be fetched.
Trait Implementations§
Source§impl Clone for RemoteAsset
impl Clone for RemoteAsset
Source§fn clone(&self) -> RemoteAsset
fn clone(&self) -> RemoteAsset
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 RemoteAsset
impl Debug for RemoteAsset
impl Eq for RemoteAsset
Source§impl PartialEq for RemoteAsset
impl PartialEq for RemoteAsset
impl StructuralPartialEq for RemoteAsset
Auto Trait Implementations§
impl Freeze for RemoteAsset
impl RefUnwindSafe for RemoteAsset
impl Send for RemoteAsset
impl Sync for RemoteAsset
impl Unpin for RemoteAsset
impl UnsafeUnpin for RemoteAsset
impl UnwindSafe for RemoteAsset
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.