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

source

pub fn tag(&self) -> Tag

Returns the enum value of tag, or the default if the field is set to an invalid enum value.

source

pub fn set_tag(&mut self, value: Tag)

Sets tag to the provided enum value.

source

pub fn aspect(&self) -> Aspect

Returns the enum value of aspect, or the default if the field is set to an invalid enum value.

source

pub fn set_aspect(&mut self, value: Aspect)

Sets aspect to the provided enum value.

source

pub fn case(&self) -> Case

Returns the enum value of case, or the default if the field is set to an invalid enum value.

source

pub fn set_case(&mut self, value: Case)

Sets case to the provided enum value.

source

pub fn form(&self) -> Form

Returns the enum value of form, or the default if the field is set to an invalid enum value.

source

pub fn set_form(&mut self, value: Form)

Sets form to the provided enum value.

source

pub fn gender(&self) -> Gender

Returns the enum value of gender, or the default if the field is set to an invalid enum value.

source

pub fn set_gender(&mut self, value: Gender)

Sets gender to the provided enum value.

source

pub fn mood(&self) -> Mood

Returns the enum value of mood, or the default if the field is set to an invalid enum value.

source

pub fn set_mood(&mut self, value: Mood)

Sets mood to the provided enum value.

source

pub fn number(&self) -> Number

Returns the enum value of number, or the default if the field is set to an invalid enum value.

source

pub fn set_number(&mut self, value: Number)

Sets number to the provided enum value.

source

pub fn person(&self) -> Person

Returns the enum value of person, or the default if the field is set to an invalid enum value.

source

pub fn set_person(&mut self, value: Person)

Sets person to the provided enum value.

source

pub fn proper(&self) -> Proper

Returns the enum value of proper, or the default if the field is set to an invalid enum value.

source

pub fn set_proper(&mut self, value: Proper)

Sets proper to the provided enum value.

source

pub fn reciprocity(&self) -> Reciprocity

Returns the enum value of reciprocity, or the default if the field is set to an invalid enum value.

source

pub fn set_reciprocity(&mut self, value: Reciprocity)

Sets reciprocity to the provided enum value.

source

pub fn tense(&self) -> Tense

Returns the enum value of tense, or the default if the field is set to an invalid enum value.

source

pub fn set_tense(&mut self, value: Tense)

Sets tense to the provided enum value.

source

pub fn voice(&self) -> Voice

Returns the enum value of voice, or the default if the field is set to an invalid enum value.

source

pub fn set_voice(&mut self, value: Voice)

Sets voice to the provided enum value.

Trait Implementations§

source§

impl Clone for PartOfSpeech

source§

fn clone(&self) -> PartOfSpeech

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for PartOfSpeech

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for PartOfSpeech

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Message for PartOfSpeech

source§

fn encoded_len(&self) -> usize

Returns the encoded length of the message without a length delimiter.
source§

fn clear(&mut self)

Clears the message, resetting all fields to their default.
source§

fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>
where Self: Sized,

Encodes the message to a buffer. Read more
source§

fn encode_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message to a newly allocated buffer.
source§

fn encode_length_delimited( &self, buf: &mut impl BufMut, ) -> Result<(), EncodeError>
where Self: Sized,

Encodes the message with a length-delimiter to a buffer. Read more
source§

fn encode_length_delimited_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message with a length-delimiter to a newly allocated buffer.
source§

fn decode(buf: impl Buf) -> Result<Self, DecodeError>
where Self: Default,

Decodes an instance of the message from a buffer. Read more
source§

fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>
where Self: Default,

Decodes a length-delimited instance of the message from the buffer.
source§

fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>
where Self: Sized,

Decodes an instance of the message from a buffer, and merges it into self. Read more
source§

fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>
where Self: Sized,

Decodes a length-delimited instance of the message from buffer, and merges it into self.
source§

impl PartialEq for PartOfSpeech

source§

fn eq(&self, other: &PartOfSpeech) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for PartOfSpeech

source§

impl StructuralPartialEq for PartOfSpeech

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more