pub enum BinaryValue {
Show 18 variants
Null,
Boolean(bool),
Int32(i32),
Int64(i64),
Float(f32),
Double(f64),
String(String),
Bytes(Vec<u8>),
List(Vec<BinaryValue>),
Map(Vec<(BinaryValue, BinaryValue)>),
Uuid([u8; 16]),
Vertex {
id: Box<BinaryValue>,
label: String,
},
Edge {
id: Box<BinaryValue>,
label: String,
in_v: Box<BinaryValue>,
out_v: Box<BinaryValue>,
},
Property {
key: String,
value: Box<BinaryValue>,
},
Traverser {
value: Box<BinaryValue>,
bulk: u64,
},
Bytecode(Bytecode),
Binding {
name: String,
value: Box<BinaryValue>,
},
Custom {
type_info: TypeInfo,
data: Vec<u8>,
},
}Expand description
Binary value representation
Variants§
Null
Null value
Boolean(bool)
Boolean
Int32(i32)
32-bit integer
Int64(i64)
64-bit integer
Float(f32)
Float
Double(f64)
Double
String(String)
String
Bytes(Vec<u8>)
Bytes
List(Vec<BinaryValue>)
List of values
Map(Vec<(BinaryValue, BinaryValue)>)
Map of key-value pairs
Uuid([u8; 16])
UUID (16 bytes)
Vertex
Vertex with ID and label
Edge
Edge with ID, label, in/out vertices
Property
Property (key, value)
Traverser
Traverser (value, bulk, path)
Bytecode(Bytecode)
Bytecode instruction
Binding
Binding (name -> value)
Custom
Custom type
Implementations§
Trait Implementations§
Source§impl Clone for BinaryValue
impl Clone for BinaryValue
Auto Trait Implementations§
impl Forget for BinaryValue
impl Freeze for BinaryValuewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<BinaryValue>: Freeze,
PhantomData<(BinaryValue, BinaryValue)>: Freeze,
*const BinaryValue is !null: Freeze,
PhantomData<Instruction>: Freeze,
impl Move for BinaryValue
impl RefUnwindSafe for BinaryValue
impl Send for BinaryValue
impl Sync for BinaryValue
impl Unpin for BinaryValue
impl UnsafeUnpin for BinaryValuewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<BinaryValue>: UnsafeUnpin,
PhantomData<(BinaryValue, BinaryValue)>: UnsafeUnpin,
*const BinaryValue is !null: UnsafeUnpin,
PhantomData<Instruction>: UnsafeUnpin,
impl UnwindSafe for BinaryValue
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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