pub struct ComputeDef {
pub comp_type: String,
pub has_fn: bool,
pub has_async_fn: bool,
pub fn_ref: Option<String>,
pub agg: Option<Value>,
pub depends: Vec<String>,
pub read: Option<Vec<String>>,
}Fields§
§comp_type: String§has_fn: bool§has_async_fn: bool§fn_ref: Option<String>回调标识:Host 经 FnRegistry 把它绑定到实现;缺省 = 计算列 key 名
agg: Option<Value>归一聚合算子(§9.2(2)):{"$count": "lessons"} / {"$sum": "lessons.duration"}。
取代旧的 lookup + addFields Mongo 专用形态;SQL / Mongo 走同一语法(执行下推优先)。
depends: Vec<String>§read: Option<Vec<String>>Trait Implementations§
Source§impl Clone for ComputeDef
impl Clone for ComputeDef
Auto Trait Implementations§
impl Freeze for ComputeDef
impl RefUnwindSafe for ComputeDef
impl Send for ComputeDef
impl Sync for ComputeDef
impl Unpin for ComputeDef
impl UnsafeUnpin for ComputeDef
impl UnwindSafe for ComputeDef
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