Struct google_api_proto::google::cloud::language::v1beta1::PartOfSpeech
source · pub struct PartOfSpeech {
pub tag: i32,
pub aspect: i32,
pub case: i32,
pub form: i32,
pub gender: i32,
pub mood: i32,
pub number: i32,
pub person: i32,
pub proper: i32,
pub reciprocity: i32,
pub tense: i32,
pub voice: i32,
}
Expand description
Represents part of speech information for a token.
Fields§
§tag: i32
The part of speech tag.
aspect: i32
The grammatical aspect.
case: i32
The grammatical case.
form: i32
The grammatical form.
gender: i32
The grammatical gender.
mood: i32
The grammatical mood.
number: i32
The grammatical number.
person: i32
The grammatical person.
proper: i32
The grammatical properness.
reciprocity: i32
The grammatical reciprocity.
tense: i32
The grammatical tense.
voice: i32
The grammatical voice.
Implementations§
source§impl PartOfSpeech
impl PartOfSpeech
sourcepub fn tag(&self) -> Tag
pub fn tag(&self) -> Tag
Returns the enum value of tag
, or the default if the field is set to an invalid enum value.
sourcepub fn aspect(&self) -> Aspect
pub fn aspect(&self) -> Aspect
Returns the enum value of aspect
, or the default if the field is set to an invalid enum value.
sourcepub fn set_aspect(&mut self, value: Aspect)
pub fn set_aspect(&mut self, value: Aspect)
Sets aspect
to the provided enum value.
sourcepub fn case(&self) -> Case
pub fn case(&self) -> Case
Returns the enum value of case
, or the default if the field is set to an invalid enum value.
sourcepub fn form(&self) -> Form
pub fn form(&self) -> Form
Returns the enum value of form
, or the default if the field is set to an invalid enum value.
sourcepub fn gender(&self) -> Gender
pub fn gender(&self) -> Gender
Returns the enum value of gender
, or the default if the field is set to an invalid enum value.
sourcepub fn set_gender(&mut self, value: Gender)
pub fn set_gender(&mut self, value: Gender)
Sets gender
to the provided enum value.
sourcepub fn mood(&self) -> Mood
pub fn mood(&self) -> Mood
Returns the enum value of mood
, or the default if the field is set to an invalid enum value.
sourcepub fn number(&self) -> Number
pub fn number(&self) -> Number
Returns the enum value of number
, or the default if the field is set to an invalid enum value.
sourcepub fn set_number(&mut self, value: Number)
pub fn set_number(&mut self, value: Number)
Sets number
to the provided enum value.
sourcepub fn person(&self) -> Person
pub fn person(&self) -> Person
Returns the enum value of person
, or the default if the field is set to an invalid enum value.
sourcepub fn set_person(&mut self, value: Person)
pub fn set_person(&mut self, value: Person)
Sets person
to the provided enum value.
sourcepub fn proper(&self) -> Proper
pub fn proper(&self) -> Proper
Returns the enum value of proper
, or the default if the field is set to an invalid enum value.
sourcepub fn set_proper(&mut self, value: Proper)
pub fn set_proper(&mut self, value: Proper)
Sets proper
to the provided enum value.
sourcepub fn reciprocity(&self) -> Reciprocity
pub fn reciprocity(&self) -> Reciprocity
Returns the enum value of reciprocity
, or the default if the field is set to an invalid enum value.
sourcepub fn set_reciprocity(&mut self, value: Reciprocity)
pub fn set_reciprocity(&mut self, value: Reciprocity)
Sets reciprocity
to the provided enum value.
sourcepub fn tense(&self) -> Tense
pub fn tense(&self) -> Tense
Returns the enum value of tense
, or the default if the field is set to an invalid enum value.
Trait Implementations§
source§impl Clone for PartOfSpeech
impl Clone for PartOfSpeech
source§fn clone(&self) -> PartOfSpeech
fn clone(&self) -> PartOfSpeech
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PartOfSpeech
impl Debug for PartOfSpeech
source§impl Default for PartOfSpeech
impl Default for PartOfSpeech
source§impl Message for PartOfSpeech
impl Message for PartOfSpeech
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for PartOfSpeech
impl PartialEq for PartOfSpeech
source§fn eq(&self, other: &PartOfSpeech) -> bool
fn eq(&self, other: &PartOfSpeech) -> bool
self
and other
values to be equal, and is used
by ==
.impl Copy for PartOfSpeech
impl StructuralPartialEq for PartOfSpeech
Auto Trait Implementations§
impl Freeze for PartOfSpeech
impl RefUnwindSafe for PartOfSpeech
impl Send for PartOfSpeech
impl Sync for PartOfSpeech
impl Unpin for PartOfSpeech
impl UnwindSafe for PartOfSpeech
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
§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>
T
in a tonic::Request