pub struct ArtifactSpec {
pub id: String,
pub version: String,
pub file_name: String,
pub url: String,
pub sha256: String,
pub size_bytes: u64,
}Fields§
§id: String§version: String§file_name: String§url: String§sha256: String§size_bytes: u64Implementations§
Source§impl ArtifactSpec
impl ArtifactSpec
pub fn validate(&self) -> Result<(), ArtifactError>
Trait Implementations§
Source§impl Clone for ArtifactSpec
impl Clone for ArtifactSpec
Source§fn clone(&self) -> ArtifactSpec
fn clone(&self) -> ArtifactSpec
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 ArtifactSpec
impl Debug for ArtifactSpec
impl Eq for ArtifactSpec
Source§impl PartialEq for ArtifactSpec
impl PartialEq for ArtifactSpec
impl StructuralPartialEq for ArtifactSpec
Auto Trait Implementations§
impl Freeze for ArtifactSpec
impl RefUnwindSafe for ArtifactSpec
impl Send for ArtifactSpec
impl Sync for ArtifactSpec
impl Unpin for ArtifactSpec
impl UnsafeUnpin for ArtifactSpec
impl UnwindSafe for ArtifactSpec
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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§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.