pub struct PropDef {
pub name: String,
pub kind: PropKind,
pub value_type: PropType,
pub description: Option<String>,
pub enum_values: Vec<String>,
pub required: bool,
}Expand description
One property of a component type.
Fields§
§name: StringProperty name as it appears on the wire.
kind: PropKindWhether the property holds data or component references.
value_type: PropTypeThe JSON type the schema pins the value to, if it pins one.
description: Option<String>Human-readable description, carried into generated prompts.
enum_values: Vec<String>Permitted values, when the schema constrains them to an enum.
required: boolWhether the component is invalid without this property.
Trait Implementations§
impl Eq for PropDef
impl StructuralPartialEq for PropDef
Auto Trait Implementations§
impl Freeze for PropDef
impl RefUnwindSafe for PropDef
impl Send for PropDef
impl Sync for PropDef
impl Unpin for PropDef
impl UnsafeUnpin for PropDef
impl UnwindSafe for PropDef
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.