#[repr(u8)]pub enum TypeCode {
Show 21 variants
Custom = 0,
Int32 = 1,
Int64 = 2,
Float = 3,
Double = 4,
String = 5,
List = 6,
Map = 7,
Set = 8,
Uuid = 9,
Edge = 10,
Vertex = 11,
Path = 12,
Property = 13,
Traverser = 14,
Bytecode = 15,
Binding = 16,
Step = 17,
Boolean = 18,
Null = 19,
Bytes = 20,
}Expand description
Type codes for GraphBinary serialization
Variants§
Custom = 0
Custom type with type-info
Int32 = 1
32-bit signed integer
Int64 = 2
64-bit signed integer
Float = 3
32-bit float
Double = 4
64-bit double
String = 5
UTF-8 string
List = 6
List of values
Map = 7
Key-value map
Set = 8
Set of unique values
Uuid = 9
UUID (16 bytes)
Edge = 10
Graph edge
Vertex = 11
Graph vertex
Path = 12
Traversal path
Property = 13
Property (key-value)
Traverser = 14
Traverser (value + bulk + path)
Bytecode = 15
Bytecode (traversal plan)
Binding = 16
Binding (variable -> value)
Step = 17
Step type
Boolean = 18
Boolean
Null = 19
Null type
Bytes = 20
Bytes
Implementations§
Trait Implementations§
impl Copy for TypeCode
impl Eq for TypeCode
impl StructuralPartialEq for TypeCode
Auto Trait Implementations§
impl Freeze for TypeCode
impl RefUnwindSafe for TypeCode
impl Send for TypeCode
impl Sync for TypeCode
impl Unpin for TypeCode
impl UnsafeUnpin for TypeCode
impl UnwindSafe for TypeCode
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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