pub struct FieldMetadata {Show 14 fields
pub name: String,
pub rust_type: String,
pub user_type: String,
pub required: bool,
pub default: Option<String>,
pub example: Option<String>,
pub secret: bool,
pub description: String,
pub children: Vec<FieldMetadata>,
pub category: Option<String>,
pub enum_values: Vec<EnumValueMetadata>,
pub variants: Vec<VariantMetadata>,
pub reference: Option<String>,
pub reference_type: Option<String>,
}Expand description
Metadata for a single configuration field.
Fields§
§name: String§rust_type: String§user_type: String§required: bool§default: Option<String>§example: Option<String>§secret: bool§description: String§children: Vec<FieldMetadata>Nested children for flattened structs or enum variants.
category: Option<String>Category/group for sub-section rendering.
enum_values: Vec<EnumValueMetadata>Enum values if this field is an enum type.
variants: Vec<VariantMetadata>For polymorphic enum fields (like SamplingMode), the variant schemas.
reference: Option<String>Cross-reference link to another component’s documentation.
reference_type: Option<String>Type of reference for categorization (e.g., “codec”, “component”, “transform”).
Trait Implementations§
Source§impl Clone for FieldMetadata
impl Clone for FieldMetadata
Source§fn clone(&self) -> FieldMetadata
fn clone(&self) -> FieldMetadata
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 moreSource§impl Debug for FieldMetadata
impl Debug for FieldMetadata
Source§impl<'de> Deserialize<'de> for FieldMetadata
impl<'de> Deserialize<'de> for FieldMetadata
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FieldMetadata
impl PartialEq for FieldMetadata
Source§impl Serialize for FieldMetadata
impl Serialize for FieldMetadata
impl Eq for FieldMetadata
impl StructuralPartialEq for FieldMetadata
Auto Trait Implementations§
impl Freeze for FieldMetadata
impl RefUnwindSafe for FieldMetadata
impl Send for FieldMetadata
impl Sync for FieldMetadata
impl Unpin for FieldMetadata
impl UnsafeUnpin for FieldMetadata
impl UnwindSafe for FieldMetadata
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.