pub enum GpuOptionKind {
RelationBinding,
Integer {
minimum: u64,
maximum: u64,
default: Option<u64>,
},
NonnegativeNumber {
default: f64,
},
PositiveNumber {
default: f64,
},
UnitInterval {
default: f64,
},
Fraction {
default: f64,
},
Boolean {
default: Option<bool>,
},
Enum {
values: &'static [&'static str],
default: Option<&'static str>,
},
Text {
max_chars: usize,
},
}Expand description
Canonical scalar option metadata used by JSON schema generation and value validation in the DataFusion adapter.
Variants§
RelationBinding
Object that names an ID column and a supported dense-vector binding.
Integer
Unsigned integer constrained by inclusive bounds.
Fields
NonnegativeNumber
Finite floating-point value greater than or equal to zero.
PositiveNumber
Finite floating-point value strictly greater than zero.
UnitInterval
Finite floating-point value in the inclusive interval [0, 1].
Fraction
Finite floating-point value in the interval (0, 1].
Boolean
JSON boolean with an optional default.
Enum
String selected from the declared values.
Fields
Text
Non-empty string of at most max_chars Unicode scalar values, the unit
JSON Schema maxLength counts.
Trait Implementations§
Source§impl Clone for GpuOptionKind
impl Clone for GpuOptionKind
Source§fn clone(&self) -> GpuOptionKind
fn clone(&self) -> GpuOptionKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GpuOptionKind
Source§impl Debug for GpuOptionKind
impl Debug for GpuOptionKind
Source§impl PartialEq for GpuOptionKind
impl PartialEq for GpuOptionKind
impl StructuralPartialEq for GpuOptionKind
Auto Trait Implementations§
impl Freeze for GpuOptionKind
impl RefUnwindSafe for GpuOptionKind
impl Send for GpuOptionKind
impl Sync for GpuOptionKind
impl Unpin for GpuOptionKind
impl UnsafeUnpin for GpuOptionKind
impl UnwindSafe for GpuOptionKind
Blanket Implementations§
impl<T> Allocation for T
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request