pub struct KindMeta {
pub kind: ResourceKind,
pub domain: Domain,
pub collection_path: &'static str,
pub dir_name: &'static str,
pub channel: Channel,
pub volatile_fields: &'static [&'static str],
pub read_only_fields: &'static [&'static str],
pub secret_fields: &'static [&'static str],
pub write_only_fields: &'static [&'static str],
pub sidecar_fields: &'static [&'static str],
pub reference_fields: &'static [RefField],
}Expand description
Declarative metadata for one resource kind.
Fields§
§kind: ResourceKind§domain: Domain§collection_path: &'static strAPI collection path (exact casing as the REST API expects).
dir_name: &'static strDirectory name on disk, relative to the project’s search/ or foundry/ dir.
channel: ChannelMinimum channel required for the kind itself.
volatile_fields: &'static [&'static str]Stripped on pull and ignored in diff (dot paths, applied at any depth
for @odata.*; top-level otherwise).
read_only_fields: &'static [&'static str]Returned by GET but rejected by PUT — never written to files.
secret_fields: &'static [&'static str]Paths that may carry key material — validation rejects files where these contain anything but identity-based placeholders.
write_only_fields: &'static [&'static str]Fields the server accepts on PUT but never returns on GET (redacted). Kept in local files, sent on push, excluded from comparisons.
sidecar_fields: &'static [&'static str]String fields extracted to Markdown sidecars on pull by default.
reference_fields: &'static [RefField]How this kind references other resources.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KindMeta
impl RefUnwindSafe for KindMeta
impl Send for KindMeta
impl Sync for KindMeta
impl Unpin for KindMeta
impl UnsafeUnpin for KindMeta
impl UnwindSafe for KindMeta
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