pub struct WorkloadMeta {
pub name: Option<String>,
pub description: Option<String>,
pub maintainer: Option<String>,
pub labels: Option<Vec<String>>,
pub default_priority: Option<Priority>,
pub packages: Vec<String>,
}Expand description
Per-workload metadata for content-resolver export.
All fields except packages are optional — omitted fields
fall back to the inventory-level values.
Fields§
§name: Option<String>Workload name in content-resolver.
description: Option<String>Human-readable description.
maintainer: Option<String>Maintainer override.
labels: Option<Vec<String>>Content-resolver labels.
default_priority: Option<Priority>Default Bugzilla priority for packages in this workload
when they don’t carry an explicit priority. The
resolved priority is the max across all workloads listing
the package, so a package in both a “best-effort” and a
“security-sensitive” workload picks up the latter.
packages: Vec<String>Source RPM names belonging to this workload.
Trait Implementations§
Source§impl Clone for WorkloadMeta
impl Clone for WorkloadMeta
Source§fn clone(&self) -> WorkloadMeta
fn clone(&self) -> WorkloadMeta
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 WorkloadMeta
impl Debug for WorkloadMeta
Source§impl Default for WorkloadMeta
impl Default for WorkloadMeta
Source§fn default() -> WorkloadMeta
fn default() -> WorkloadMeta
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WorkloadMeta
impl<'de> Deserialize<'de> for WorkloadMeta
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 JsonSchema for WorkloadMeta
impl JsonSchema for WorkloadMeta
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for WorkloadMeta
impl RefUnwindSafe for WorkloadMeta
impl Send for WorkloadMeta
impl Sync for WorkloadMeta
impl Unpin for WorkloadMeta
impl UnsafeUnpin for WorkloadMeta
impl UnwindSafe for WorkloadMeta
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