#[non_exhaustive]pub enum BodyTemplate {
NoIdentifier,
Int64FromExternalName {
field: String,
},
SpecFields(Vec<SpecFieldMapping>),
}Expand description
Body-construction template for a CRUD method whose SDK body shape doesn’t fit the single-string-identifier pattern.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NoIdentifier
body := akeyless.X{Token: &e.token} — no identifier field.
Used by singleton-bodies (e.g. KmipDescribeServer / KmipDeleteServer).
Int64FromExternalName
id, _ := strconv.ParseInt(meta.GetExternalName(cr), 10, 64) +
body := akeyless.X{<field>: id, Token: &e.token}. Adds strconv
to the controller’s imports.
SpecFields(Vec<SpecFieldMapping>)
body := akeyless.X{<body_field>: cr.Spec.ForProvider.<spec_field>, ..., Token: &e.token} — composite-key bodies
pulling each field from the resource’s spec.
Trait Implementations§
Source§impl Clone for BodyTemplate
impl Clone for BodyTemplate
Source§impl Debug for BodyTemplate
impl Debug for BodyTemplate
impl Eq for BodyTemplate
Source§impl PartialEq for BodyTemplate
impl PartialEq for BodyTemplate
impl StructuralPartialEq for BodyTemplate
Auto Trait Implementations§
impl Freeze for BodyTemplate
impl RefUnwindSafe for BodyTemplate
impl Send for BodyTemplate
impl Sync for BodyTemplate
impl Unpin for BodyTemplate
impl UnsafeUnpin for BodyTemplate
impl UnwindSafe for BodyTemplate
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.