Skip to main content

BoundField

Struct BoundField 

Source
pub struct BoundField<S: Schema, Owner: Model<Schema = S>, V> { /* private fields */ }
Expand description

One generated field resolved against one session binding occurrence.

The token retains its declaring owner; owner/binding compatibility is enforced against the installed registry when the predicate is lowered, before any I/O.

Implementations§

Source§

impl<S, Owner, V> BoundField<S, Owner, V>
where S: Schema, Owner: Model<Schema = S>, V: NumericValued,

Source

pub fn sum(self) -> Agg<S, V::Reduced>

The total of this field’s values; domain-preserving and total on an empty ungrouped stream (zero). A provider reporting an absent sum fails closed at decode.

Source

pub fn min(self) -> Agg<S, Option<V::Reduced>>

The smallest of this field’s values; absent on an empty ungrouped stream.

Source

pub fn max(self) -> Agg<S, Option<V::Reduced>>

The largest of this field’s values; absent on an empty ungrouped stream.

Source

pub fn mean(self) -> Agg<S, Option<f64>>

The arithmetic mean of this field’s values; absent on an empty ungrouped stream.

Source

pub fn median(self) -> Agg<S, Option<f64>>

The statistical median of this field’s values; absent on an empty ungrouped stream.

Source

pub fn stddev(self) -> Agg<S, Option<f64>>

The sample standard deviation of this field’s values; absent when fewer than two values are witnessed on an ungrouped stream.

Source§

impl<S: Schema, Owner: Model<Schema = S>, V> BoundField<S, Owner, V>

Source

pub fn eq<O>(self, operand: O) -> Predicate<S>
where V: QueryValued, O: QueryOperand<Domain = V::Domain>,

Equality against a canonical literal of the field’s scalar domain.

Source

pub fn ne<O>(self, operand: O) -> Predicate<S>
where V: QueryValued, O: QueryOperand<Domain = V::Domain>,

Inequality against a canonical literal of the field’s scalar domain.

Source

pub fn lt(self, operand: impl OrderedOperand) -> Predicate<S>
where V: OrderedValued,

Strictly-less ordering against a canonically ordered literal; admitted only for canonically ordered field domains.

Source

pub fn le(self, operand: impl OrderedOperand) -> Predicate<S>
where V: OrderedValued,

Less-or-equal ordering against a canonically ordered literal; admitted only for canonically ordered field domains.

Source

pub fn gt(self, operand: impl OrderedOperand) -> Predicate<S>
where V: OrderedValued,

Strictly-greater ordering against a canonically ordered literal; admitted only for canonically ordered field domains.

Source

pub fn ge(self, operand: impl OrderedOperand) -> Predicate<S>
where V: OrderedValued,

Greater-or-equal ordering against a canonically ordered literal; admitted only for canonically ordered field domains.

Source

pub fn contains(self, text: Text) -> Predicate<S>
where V: TextValued,

Text containment against bounded canonical text; admitted only for text field domains.

Source

pub fn starts_with(self, text: Text) -> Predicate<S>
where V: TextValued,

Anchored text prefix against bounded canonical text; admitted only for text field domains.

Source

pub fn ends_with(self, text: Text) -> Predicate<S>
where V: TextValued,

Anchored text suffix against bounded canonical text; admitted only for text field domains.

Source

pub fn regex(self, pattern: Regex) -> Predicate<S>
where V: TextValued,

Regular-expression match against a client-owned validated pattern; admitted only for text field domains.

Source

pub fn is_present(self) -> Predicate<S>

Require at least one owned value for this generated field.

Source

pub fn is_missing(self) -> Predicate<S>

Require no owned value for this generated field.

Source

pub fn eq_field<Owner2, V2>( self, other: BoundField<S, Owner2, V2>, ) -> Predicate<S>
where Owner2: Model<Schema = S>, V: QueryValued, V2: QueryValued<Domain = V::Domain>,

Compare for equality against another bound field in the same canonical scalar domain; the comparison carries no literal.

Source

pub fn ne_field<Owner2, V2>( self, other: BoundField<S, Owner2, V2>, ) -> Predicate<S>
where Owner2: Model<Schema = S>, V: QueryValued, V2: QueryValued<Domain = V::Domain>,

Compare for inequality against another bound field in the same canonical scalar domain.

Source

pub fn lt_field<Owner2, V2>( self, other: BoundField<S, Owner2, V2>, ) -> Predicate<S>
where Owner2: Model<Schema = S>, V: QueryValued + OrderedValued, V2: QueryValued<Domain = V::Domain> + OrderedValued,

Compare as less than another bound field in the same ordered canonical scalar domain.

Source

pub fn le_field<Owner2, V2>( self, other: BoundField<S, Owner2, V2>, ) -> Predicate<S>
where Owner2: Model<Schema = S>, V: QueryValued + OrderedValued, V2: QueryValued<Domain = V::Domain> + OrderedValued,

Compare as less than or equal to another bound field in the same ordered canonical scalar domain.

Source

pub fn gt_field<Owner2, V2>( self, other: BoundField<S, Owner2, V2>, ) -> Predicate<S>
where Owner2: Model<Schema = S>, V: QueryValued + OrderedValued, V2: QueryValued<Domain = V::Domain> + OrderedValued,

Compare as greater than another bound field in the same ordered canonical scalar domain.

Source

pub fn ge_field<Owner2, V2>( self, other: BoundField<S, Owner2, V2>, ) -> Predicate<S>
where Owner2: Model<Schema = S>, V: QueryValued + OrderedValued, V2: QueryValued<Domain = V::Domain> + OrderedValued,

Compare as greater than or equal to another bound field in the same ordered canonical scalar domain.

Source

pub fn asc(self) -> Order<S>

Order ascending by this bound field; missing keys fail closed unless an explicit missing-value policy is admitted.

Source

pub fn desc(self) -> Order<S>

Order descending by this bound field; missing keys fail closed unless an explicit missing-value policy is admitted.

Trait Implementations§

Source§

impl<S: Schema, Owner: Model<Schema = S>, V> Clone for BoundField<S, Owner, V>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<S: Schema, Owner: Model<Schema = S>, V> Copy for BoundField<S, Owner, V>

Auto Trait Implementations§

§

impl<S, Owner, V> Freeze for BoundField<S, Owner, V>

§

impl<S, Owner, V> RefUnwindSafe for BoundField<S, Owner, V>

§

impl<S, Owner, V> Send for BoundField<S, Owner, V>

§

impl<S, Owner, V> Sync for BoundField<S, Owner, V>

§

impl<S, Owner, V> Unpin for BoundField<S, Owner, V>

§

impl<S, Owner, V> UnsafeUnpin for BoundField<S, Owner, V>

§

impl<S, Owner, V> UnwindSafe for BoundField<S, Owner, V>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more