pub struct Script {
pub source: String,
pub ty: FlussoType,
pub nullable: bool,
pub array: bool,
pub enum_order: Vec<String>,
pub subfields: bool,
}Expand description
A computed field: a script run over the built document, returning a value of the declared leaf type (or an array of it).
Fields§
§source: StringThe script source (Rhai).
ty: FlussoTypeThe declared leaf type of the result.
nullable: boolWhether the script may return null (()).
array: boolWhether the script returns an array of ty.
enum_order: Vec<String>For an Enum result, its variants in rank order.
subfields: boolWhether a sink may add its automatic subfields (as on a Column).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Script
impl<'de> Deserialize<'de> for Script
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
Auto Trait Implementations§
impl Forget for Script
impl Freeze for Script
impl Move for Script
impl RefUnwindSafe for Script
impl Send for Script
impl Sync for Script
impl Unpin for Script
impl UnsafeUnpin for Script
impl UnwindSafe for Script
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