#[non_exhaustive]pub struct MethodOverride {
pub identifier_field: Option<String>,
pub identifier_pointer: Option<bool>,
pub body_template: Option<BodyTemplate>,
pub body_field_skips: Vec<String>,
}Expand description
Per-method override of ResourceShape’s defaults.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.identifier_field: Option<String>When Some, replaces ResourceShape::identifier_field for
this CRUD method.
identifier_pointer: Option<bool>When Some, replaces ResourceShape::identifier_pointer for
this CRUD method.
body_template: Option<BodyTemplate>When Some, the entire body construction goes through the
template, ignoring identifier_field / identifier_pointer.
Used for SDK body shapes that don’t fit the
single-string-identifier pattern.
body_field_skips: Vec<String>PascalCase attribute names to skip when M6.2 walks
cr.Spec.ForProvider.* to push fields onto the SDK body.
Used for the per-resource per-method skip list when the TOML’s
IacType disagrees with the SDK body’s Go type — e.g. the TOML
says Boolean but the akeyless OpenAPI spec defines the same
JSON property as *string. Without this skip, the emitted
body.X = cr.Spec.ForProvider.X triggers a Go type-mismatch.
Slice 2 graduates this to schema-driven filtering by reading the SDK body schema from the OpenAPI spec at emit time and auto-skipping fields whose name+type don’t match.
Trait Implementations§
Source§impl Clone for MethodOverride
impl Clone for MethodOverride
Source§impl Debug for MethodOverride
impl Debug for MethodOverride
Source§impl Default for MethodOverride
impl Default for MethodOverride
impl Eq for MethodOverride
Source§impl PartialEq for MethodOverride
impl PartialEq for MethodOverride
impl StructuralPartialEq for MethodOverride
Auto Trait Implementations§
impl Freeze for MethodOverride
impl RefUnwindSafe for MethodOverride
impl Send for MethodOverride
impl Sync for MethodOverride
impl Unpin for MethodOverride
impl UnsafeUnpin for MethodOverride
impl UnwindSafe for MethodOverride
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
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
key and return true if they are equal.