Enum svc_storage::grpc::GrpcFieldOption
source · pub enum GrpcFieldOption {
Show 17 variants
Bytes(Option<Vec<u8>>),
StringList(Option<Vec<String>>),
String(Option<String>),
I64List(Option<Vec<i64>>),
I64(Option<i64>),
F64(Option<f64>),
I32(Option<i32>),
U32List(Option<Vec<u32>>),
U32(Option<u32>),
F32(Option<f32>),
Bool(Option<bool>),
I16(Option<i16>),
Timestamp(Option<Timestamp>),
GeoPoint(Option<Point>),
GeoPolygon(Option<Polygon>),
GeoLineString(Option<LineString>),
None,
}
Expand description
gRPC field types as Option
Variants§
Bytes(Option<Vec<u8>>)
Byte Array
StringList(Option<Vec<String>>)
Option<String>
String(Option<String>)
Option<String>
I64List(Option<Vec<i64>>)
Option<Vec<i64>>
I64(Option<i64>)
Option<i64>
F64(Option<f64>)
Option<f64>
I32(Option<i32>)
Option<i32>
U32List(Option<Vec<u32>>)
Option<Vec<u32>>
U32(Option<u32>)
Option<u32>
F32(Option<f32>)
Option<f32>
Bool(Option<bool>)
Option<bool>
I16(Option<i16>)
Option<i16>
Timestamp(Option<Timestamp>)
Option<Timestamp>
GeoPoint(Option<Point>)
Geo Point
GeoPolygon(Option<Polygon>)
Geo Polygon
GeoLineString(Option<LineString>)
Geo Line
None
Trait Implementations§
source§impl Clone for GrpcFieldOption
impl Clone for GrpcFieldOption
source§fn clone(&self) -> GrpcFieldOption
fn clone(&self) -> GrpcFieldOption
Returns a copy 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 GrpcFieldOption
impl Debug for GrpcFieldOption
source§impl From<GrpcFieldOption> for Option<GrpcField>
impl From<GrpcFieldOption> for Option<GrpcField>
source§fn from(field: GrpcFieldOption) -> Self
fn from(field: GrpcFieldOption) -> Self
Converts to this type from the input type.
source§impl From<Option<GeoLineString>> for GrpcFieldOption
impl From<Option<GeoLineString>> for GrpcFieldOption
source§fn from(field: Option<GeoLineString>) -> Self
fn from(field: Option<GeoLineString>) -> Self
Converts to this type from the input type.
source§impl From<Option<GeoPolygon>> for GrpcFieldOption
impl From<Option<GeoPolygon>> for GrpcFieldOption
source§fn from(field: Option<GeoPolygon>) -> Self
fn from(field: Option<GeoPolygon>) -> Self
Converts to this type from the input type.
source§impl PartialEq for GrpcFieldOption
impl PartialEq for GrpcFieldOption
source§fn eq(&self, other: &GrpcFieldOption) -> bool
fn eq(&self, other: &GrpcFieldOption) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GrpcFieldOption
Auto Trait Implementations§
impl RefUnwindSafe for GrpcFieldOption
impl Send for GrpcFieldOption
impl Sync for GrpcFieldOption
impl Unpin for GrpcFieldOption
impl UnwindSafe for GrpcFieldOption
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
§impl<T> CloneAny for T
impl<T> CloneAny for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§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