pub struct PackageMetadata {
pub created_on: Option<OffsetDateTime>,
pub download_url: Option<String>,
pub filename: Option<String>,
pub hash_value: Option<String>,
pub info_url: Option<String>,
pub platform: Option<String>,
pub type_: Option<String>,
pub version: Option<PackageVersion>,
}Expand description
Represents a downloadable package.
Fields§
§created_on: Option<OffsetDateTime>The date the package was created
download_url: Option<String>A direct link to download the package.
filename: Option<String>The UI uses this to display instructions, i.e. “unzip MyAgent.zip”
hash_value: Option<String>MD5 hash as a base64 string
info_url: Option<String>A link to documentation
platform: Option<String>The platform (win7, linux, etc.)
type_: Option<String>The type of package (e.g. “agent”)
version: Option<PackageVersion>Implementations§
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