pub struct KindShape {
pub gvks: Vec<XGvk>,
pub description: String,
pub properties: BTreeMap<String, Value>,
pub required: Vec<String>,
}Expand description
Per-kind schema body. We only extract what we need.
Fields§
§gvks: Vec<XGvk>x-kubernetes-group-version-kind array. Most kinds have ONE
entry; alpha kinds in transition can have multiple.
description: StringHuman-readable description (drops into the generated rustdoc).
properties: BTreeMap<String, Value>Top-level properties. Used at M0.0.4 to emit typed fields.
required: Vec<String>Required properties. Used at M0.0.4 for #[serde(skip_serializing_if)].
Trait Implementations§
Source§impl<'de> Deserialize<'de> for KindShape
impl<'de> Deserialize<'de> for KindShape
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
Auto Trait Implementations§
impl Forget for KindShape
impl Freeze for KindShapewhere
*const u8 is !null: Freeze,
PhantomData<XGvk>: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
PhantomData<String>: Freeze,
impl Move for KindShape
impl RefUnwindSafe for KindShape
impl Send for KindShape
impl Sync for KindShape
impl Unpin for KindShape
impl UnsafeUnpin for KindShapewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<XGvk>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for KindShape
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