pub struct PackageMetadata {
pub name: Option<String>,
pub description: Option<String>,
pub authors: Option<Vec<String>>,
pub language: Option<String>,
pub size: Option<i32>,
pub hashsum: Option<String>,
pub files_hash: Option<String>,
}
Expand description
PackageMetadata : Package metadata that has been extracted from the uploaded package.
Fields§
§name: Option<String>
Name of the Compute package.
description: Option<String>
Description of the Compute package.
A list of package authors’ email addresses.
language: Option<String>
The language of the Compute package.
size: Option<i32>
Size of the Compute package in bytes.
hashsum: Option<String>
Hash of the Compute package.
files_hash: Option<String>
Hash of the files within the Compute package.
Implementations§
Source§impl PackageMetadata
impl PackageMetadata
Sourcepub fn new() -> PackageMetadata
pub fn new() -> PackageMetadata
Package metadata that has been extracted from the uploaded package.
Trait Implementations§
Source§impl Clone for PackageMetadata
impl Clone for PackageMetadata
Source§fn clone(&self) -> PackageMetadata
fn clone(&self) -> PackageMetadata
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 PackageMetadata
impl Debug for PackageMetadata
Source§impl Default for PackageMetadata
impl Default for PackageMetadata
Source§fn default() -> PackageMetadata
fn default() -> PackageMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PackageMetadata
impl<'de> Deserialize<'de> for PackageMetadata
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 PartialEq for PackageMetadata
impl PartialEq for PackageMetadata
Source§impl Serialize for PackageMetadata
impl Serialize for PackageMetadata
impl StructuralPartialEq for PackageMetadata
Auto Trait Implementations§
impl Freeze for PackageMetadata
impl RefUnwindSafe for PackageMetadata
impl Send for PackageMetadata
impl Sync for PackageMetadata
impl Unpin for PackageMetadata
impl UnwindSafe for PackageMetadata
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