[][src]Struct gcp_client::google::cloud::language::v1::PartOfSpeech

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,
}

Represents part of speech information for a token. Parts of speech are as defined in http://www.lrec-conf.org/proceedings/lrec2012/pdf/274_Paper.pdf

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

impl PartOfSpeech[src]

pub fn tag(&self) -> Tag[src]

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

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

Sets tag to the provided enum value.

pub fn aspect(&self) -> Aspect[src]

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

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

Sets aspect to the provided enum value.

pub fn case(&self) -> Case[src]

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

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

Sets case to the provided enum value.

pub fn form(&self) -> Form[src]

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

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

Sets form to the provided enum value.

pub fn gender(&self) -> Gender[src]

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

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

Sets gender to the provided enum value.

pub fn mood(&self) -> Mood[src]

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

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

Sets mood to the provided enum value.

pub fn number(&self) -> Number[src]

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

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

Sets number to the provided enum value.

pub fn person(&self) -> Person[src]

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

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

Sets person to the provided enum value.

pub fn proper(&self) -> Proper[src]

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

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

Sets proper to the provided enum value.

pub fn reciprocity(&self) -> Reciprocity[src]

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

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

Sets reciprocity to the provided enum value.

pub fn tense(&self) -> Tense[src]

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

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

Sets tense to the provided enum value.

pub fn voice(&self) -> Voice[src]

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

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

Sets voice to the provided enum value.

Trait Implementations

impl Clone for PartOfSpeech[src]

impl Debug for PartOfSpeech[src]

impl Default for PartOfSpeech[src]

impl Message for PartOfSpeech[src]

impl PartialEq<PartOfSpeech> for PartOfSpeech[src]

impl StructuralPartialEq for PartOfSpeech[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

impl<T> WithSubscriber for T[src]