pub enum QueryValue {
String(String),
Int(i64),
Float(f64),
Bool(bool),
EntityId(String),
}Expand description
Value type for query parameter substitution in FFI contexts.
Used with fetch(), query(), etc. to fill in ? placeholders:
ⓘ
ops.fetch(ctx, "name = ?", vec![QueryValue::String("Alice".into())])Variants§
String(String)
String value
Int(i64)
64-bit integer
Float(f64)
64-bit float
Bool(bool)
Boolean
EntityId(String)
Entity ID (as base64 string for FFI compatibility)
Trait Implementations§
Source§impl Clone for QueryValue
impl Clone for QueryValue
Source§fn clone(&self) -> QueryValue
fn clone(&self) -> QueryValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QueryValue
impl Debug for QueryValue
Source§impl From<&str> for QueryValue
impl From<&str> for QueryValue
Source§fn from(s: &str) -> QueryValue
fn from(s: &str) -> QueryValue
Converts to this type from the input type.
Source§impl From<EntityId> for QueryValue
impl From<EntityId> for QueryValue
Source§fn from(id: EntityId) -> QueryValue
fn from(id: EntityId) -> QueryValue
Converts to this type from the input type.
Source§impl From<String> for QueryValue
impl From<String> for QueryValue
Source§fn from(s: String) -> QueryValue
fn from(s: String) -> QueryValue
Converts to this type from the input type.
Source§impl From<bool> for QueryValue
impl From<bool> for QueryValue
Source§fn from(b: bool) -> QueryValue
fn from(b: bool) -> QueryValue
Converts to this type from the input type.
Source§impl From<f64> for QueryValue
impl From<f64> for QueryValue
Source§fn from(f: f64) -> QueryValue
fn from(f: f64) -> QueryValue
Converts to this type from the input type.
Source§impl From<i32> for QueryValue
impl From<i32> for QueryValue
Source§fn from(i: i32) -> QueryValue
fn from(i: i32) -> QueryValue
Converts to this type from the input type.
Source§impl From<i64> for QueryValue
impl From<i64> for QueryValue
Source§fn from(i: i64) -> QueryValue
fn from(i: i64) -> QueryValue
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for QueryValue
impl RefUnwindSafe for QueryValue
impl Send for QueryValue
impl Sync for QueryValue
impl Unpin for QueryValue
impl UnwindSafe for QueryValue
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
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> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.