pub struct TypeFieldInfo {
pub node: Value,
}Expand description
A single field (for structs/tables) or variant (for enums). Wraps the raw JSON node so callers can read any evenframe-side metadata; the common-case getters below cover stub parsing, annotations, and validators.
Fields§
§node: ValueJSON form of evenframe_core::types::StructField for struct
fields, or VariantInfo for enum variants.
Implementations§
Source§impl TypeFieldInfo
impl TypeFieldInfo
Sourcepub fn field_name(&self) -> Option<&str>
pub fn field_name(&self) -> Option<&str>
Field or variant name (e.g., "customer_name" or "Viewer").
Sourcepub fn annotations(&self) -> Vec<String>
pub fn annotations(&self) -> Vec<String>
Natively-parsed #[annotation("...")] strings on this field/variant.
Sourcepub fn raw_attributes(&self) -> BTreeMap<String, Vec<String>>
pub fn raw_attributes(&self) -> BTreeMap<String, Vec<String>>
Field-level raw attribute stubs (e.g., #[text(label = "...")]).
See TypeContext::raw_attributes for shape details.
Trait Implementations§
Source§impl Clone for TypeFieldInfo
impl Clone for TypeFieldInfo
Source§fn clone(&self) -> TypeFieldInfo
fn clone(&self) -> TypeFieldInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TypeFieldInfo
impl RefUnwindSafe for TypeFieldInfo
impl Send for TypeFieldInfo
impl Sync for TypeFieldInfo
impl Unpin for TypeFieldInfo
impl UnsafeUnpin for TypeFieldInfo
impl UnwindSafe for TypeFieldInfo
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