pub enum BamlType {
String,
Int,
Float,
Bool,
StringEnum(Vec<String>),
Ref(String),
Optional(Box<BamlType>),
Array(Box<BamlType>),
Union(Vec<String>),
Image,
}Expand description
BAML type representation.
Variants§
String
Int
Float
Bool
StringEnum(Vec<String>)
A string enum: "trim" | "keep" | "highlight"
Ref(String)
Reference to another class.
Optional(Box<BamlType>)
Optional type (T | null).
Array(Box<BamlType>)
Array type.
Union(Vec<String>)
Union of class references (for next_actions).
Image
Image type (special BAML type).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BamlType
impl RefUnwindSafe for BamlType
impl Send for BamlType
impl Sync for BamlType
impl Unpin for BamlType
impl UnsafeUnpin for BamlType
impl UnwindSafe for BamlType
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