#[non_exhaustive]pub struct SpecFieldMapping {
pub body_field: String,
pub spec_field: String,
pub pointer: bool,
}Expand description
One (body_field, spec_field, pointer) triple for BodyTemplate::SpecFields.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.body_field: StringSDK body struct field name (e.g. "RoleName").
spec_field: StringGo-PascalCase’d cr.Spec.ForProvider.<X> field name
(e.g. "RoleName", "Path", "AmName"). The emitter does not
transform — pass the exact Go identifier the IR produces.
pointer: boolWhether the SDK body field is *T (pointer) — emitter wraps
the spec value in a &.
Trait Implementations§
Source§impl Clone for SpecFieldMapping
impl Clone for SpecFieldMapping
Source§impl Debug for SpecFieldMapping
impl Debug for SpecFieldMapping
impl Eq for SpecFieldMapping
Source§impl PartialEq for SpecFieldMapping
impl PartialEq for SpecFieldMapping
impl StructuralPartialEq for SpecFieldMapping
Auto Trait Implementations§
impl Freeze for SpecFieldMapping
impl RefUnwindSafe for SpecFieldMapping
impl Send for SpecFieldMapping
impl Sync for SpecFieldMapping
impl Unpin for SpecFieldMapping
impl UnsafeUnpin for SpecFieldMapping
impl UnwindSafe for SpecFieldMapping
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.