pub struct WorkloadTypeMeta { /* private fields */ }Expand description
Group/version and kind of one workload schema.
Implementations§
Source§impl WorkloadTypeMeta
impl WorkloadTypeMeta
Sourcepub fn new(
api_version: impl Into<String>,
kind: impl Into<String>,
) -> ModelResult<Self>
pub fn new( api_version: impl Into<String>, kind: impl Into<String>, ) -> ModelResult<Self>
Creates validated workload type metadata.
§Errors
Returns ModelError::Invalid for an invalid CRD group/version or kind.
Sourcepub fn api_version(&self) -> &str
pub fn api_version(&self) -> &str
Workload API group and version.
Trait Implementations§
Source§impl Clone for WorkloadTypeMeta
impl Clone for WorkloadTypeMeta
Source§fn clone(&self) -> WorkloadTypeMeta
fn clone(&self) -> WorkloadTypeMeta
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 WorkloadTypeMeta
impl Debug for WorkloadTypeMeta
Source§impl<'de> Deserialize<'de> for WorkloadTypeMeta
impl<'de> Deserialize<'de> for WorkloadTypeMeta
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
impl Eq for WorkloadTypeMeta
Source§impl Hash for WorkloadTypeMeta
impl Hash for WorkloadTypeMeta
Source§impl JsonSchema for WorkloadTypeMeta
impl JsonSchema for WorkloadTypeMeta
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 moreSource§impl PartialEq for WorkloadTypeMeta
impl PartialEq for WorkloadTypeMeta
Source§impl Serialize for WorkloadTypeMeta
impl Serialize for WorkloadTypeMeta
impl StructuralPartialEq for WorkloadTypeMeta
Auto Trait Implementations§
impl Freeze for WorkloadTypeMeta
impl RefUnwindSafe for WorkloadTypeMeta
impl Send for WorkloadTypeMeta
impl Sync for WorkloadTypeMeta
impl Unpin for WorkloadTypeMeta
impl UnsafeUnpin for WorkloadTypeMeta
impl UnwindSafe for WorkloadTypeMeta
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