Struct rhoast_client_v03::proto::scalapb::FieldOptions
source · pub struct FieldOptions {
pub type: Option<String>,
pub scala_name: Option<String>,
pub collection_type: Option<String>,
pub key_type: Option<String>,
pub value_type: Option<String>,
pub annotations: Vec<String>,
pub map_type: Option<String>,
pub no_box: Option<bool>,
}
Fields§
§type: Option<String>
§scala_name: Option<String>
§collection_type: Option<String>
Can be specified only if this field is repeated. If unspecified,
it falls back to the file option named collection_type
, which defaults
to scala.collection.Seq
.
key_type: Option<String>
If the field is a map, you can specify custom Scala types for the key or value.
value_type: Option<String>
§annotations: Vec<String>
Custom annotations to add to the field.
map_type: Option<String>
Can be specified only if this field is a map. If unspecified,
it falls back to the file option named map_type
which defaults to
scala.collection.immutable.Map
no_box: Option<bool>
Do not box this value in Option[T]. If set, this overrides MessageOptions.no_box
Implementations§
source§impl FieldOptions
impl FieldOptions
sourcepub fn scala_name(&self) -> &str
pub fn scala_name(&self) -> &str
Returns the value of scala_name
, or the default value if scala_name
is unset.
sourcepub fn collection_type(&self) -> &str
pub fn collection_type(&self) -> &str
Returns the value of collection_type
, or the default value if collection_type
is unset.
sourcepub fn key_type(&self) -> &str
pub fn key_type(&self) -> &str
Returns the value of key_type
, or the default value if key_type
is unset.
sourcepub fn value_type(&self) -> &str
pub fn value_type(&self) -> &str
Returns the value of value_type
, or the default value if value_type
is unset.
Trait Implementations§
source§impl Clone for FieldOptions
impl Clone for FieldOptions
source§fn clone(&self) -> FieldOptions
fn clone(&self) -> FieldOptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FieldOptions
impl Debug for FieldOptions
source§impl Default for FieldOptions
impl Default for FieldOptions
source§impl Message for FieldOptions
impl Message for FieldOptions
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where B: BufMut, Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8, Global>where Self: Sized,
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where B: BufMut, Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>where Self: Sized,
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where B: Buf, Self: Default,
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where B: Buf, Self: Default,
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where B: Buf, Self: Sized,
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where B: Buf, Self: Sized,
self
.source§impl PartialEq<FieldOptions> for FieldOptions
impl PartialEq<FieldOptions> for FieldOptions
source§fn eq(&self, other: &FieldOptions) -> bool
fn eq(&self, other: &FieldOptions) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FieldOptions
Auto Trait Implementations§
impl RefUnwindSafe for FieldOptions
impl Send for FieldOptions
impl Sync for FieldOptions
impl Unpin for FieldOptions
impl UnwindSafe for FieldOptions
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
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request