pub enum MetaKey {
Ext,
Seed,
}Expand description
Which out-of-band system-metadata map a PayloadItem::Meta carries.
$ext and $seed are the same shape — an opaque Map<String, Value> that
never reaches the plate JSON and round-trips through Markdown and the storage
DTO — so the live model represents them as one variant discriminated by this
key. They differ only in their canonical sort rank, whether they are
root-only, and (downstream of storage) whether the seeding layer interprets
them: $ext is opaque; $seed is read by crate::SeedOverlay::from_json.
Variants§
Ext
$ext — opaque out-of-band consumer state (editor renames, agent
annotations). Allowed on any card.
Seed
$seed — per-card-kind seed overlays. Root-only (like $quill).
Implementations§
Source§impl MetaKey
impl MetaKey
Sourcepub fn from_key_str(key: &str) -> Option<Self>
pub fn from_key_str(key: &str) -> Option<Self>
Parse the source key ("$ext" / "$seed"), or None for any other key.
Sourcepub fn is_root_only(self) -> bool
pub fn is_root_only(self) -> bool
true when the key may appear on the root card only (rejected on
composable cards), like $quill.
Trait Implementations§
impl Copy for MetaKey
impl Eq for MetaKey
impl StructuralPartialEq for MetaKey
Auto Trait Implementations§
impl Freeze for MetaKey
impl RefUnwindSafe for MetaKey
impl Send for MetaKey
impl Sync for MetaKey
impl Unpin for MetaKey
impl UnsafeUnpin for MetaKey
impl UnwindSafe for MetaKey
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.