Skip to main content

SoftwarePackage

Struct SoftwarePackage 

Source
pub struct SoftwarePackage {
Show 18 fields pub name: String, pub version: String, pub type: String, pub vendor: String, pub acceptance_level: String, pub summary: String, pub description: String, pub reference_url: Option<Vec<String>>, pub creation_date: Option<String>, pub depends: Option<Vec<Relation>>, pub conflicts: Option<Vec<Relation>>, pub replaces: Option<Vec<Relation>>, pub provides: Option<Vec<String>>, pub maintenance_mode_required: Option<bool>, pub hardware_platforms_required: Option<Vec<String>>, pub capability: SoftwarePackageCapability, pub tag: Option<Vec<String>>, pub payload: Option<Vec<String>>,
}
Expand description

Software Packages provide discrete version and packaging.

This data is reported by CLI:: esxcli software vib get -n …

§How to access

  • HostImageConfigManager::fetch_software_packages()

Fields§

§name: String

Identifier that uniquely identifies the software package.

§version: String

Version string uniquely identifies this package.

§type: String

Type of vib installed.

See SoftwarePackageVibType_enum.

§vendor: String

The corporate entity that created this package.

§acceptance_level: String

See also HostImageAcceptanceLevel_enum.

§summary: String

A brief description of the package contents.

§description: String

A full account of the package contents.

§reference_url: Option<Vec<String>>

The list of SupportReference objects with in-depth support information.

§creation_date: Option<String>

The time when the package was installed.

On Autodeploy stateless installs there is no set value.

§depends: Option<Vec<Relation>>

A list of VIBs that must be installed at the same time as this VIB.

§conflicts: Option<Vec<Relation>>

A list of VIBs that cannot be installed at the same time as this VIB for a given version.

§replaces: Option<Vec<Relation>>

A list of SoftwareConstraint objects that identify VIBs that replace this VIB or make it obsolete.

VIBs automatically replace VIBs with the same name but lower versions.

§provides: Option<Vec<String>>

A list of virtual packages or interfaces this VIB provides.

§maintenance_mode_required: Option<bool>

True if hosts must be in maintenance mode for installation of this VIB.

§hardware_platforms_required: Option<Vec<String>>

A list of hardware platforms this package is supported on.

§capability: SoftwarePackageCapability

A set of optional attributes for this package.

§tag: Option<Vec<String>>

A list of string tags for this package defined by the vendor or publisher.

Tags can be used to identify characteristics of a package.

§payload: Option<Vec<String>>

A list of string tags to indicate one or more of what is contained: may be one of bootloader, upgrade, bootisobios, bootisoefi, vgz, tgz, boot or other values.

Trait Implementations§

Source§

impl Debug for SoftwarePackage

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Deserialize for SoftwarePackage

Source§

fn begin(out: &mut Option<Self>) -> &mut dyn Visitor

The only correct implementation of this method is: Read more
Source§

impl Serialize for SoftwarePackage

Source§

fn begin(&self) -> Fragment<'_>

Source§

impl VimObjectTrait for SoftwarePackage

Source§

impl DataObjectTrait for SoftwarePackage

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> AsAny for T
where T: 'static,

Source§

fn as_any_ref<'a>(&'a self) -> &'a (dyn Any + 'static)

Cast a reference to Any trait.

Source§

fn as_any_box(self: Box<T>) -> Box<dyn Any>

Cast to a boxed reference to Any trait.

Source§

fn type_id(&self) -> TypeId

Get the underlying type identifier.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<To, T> CastInto<To> for T
where To: CastFrom<T> + ?Sized, T: 'static + ?Sized,

Source§

fn into_ref<'a>(&'a self) -> Option<&'a To>

Casts a reference to a trait object. If the cast fails, std::option::Option::None is returned.
Source§

fn into_box(self: Box<T>) -> Result<Box<To>, Box<dyn Any>>

Casts a boxed trait object to another trait object. If the cast fails, the original boxed trait object is returned in std::result::Result::Err.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,