pub fn action_type(&self) -> ActionType {
        if self.is_valid() && self.verb.is_some() && self.item.is_some() && self.subject.is_some() {
            ActionType::VerbItemSubject
        } else if self.is_valid() && self.verb.is_some() && self.subject.is_some() {
            ActionType::VerbSubject
        } else if self.is_valid() && self.verb.is_some() && self.item.is_some() {
            ActionType::VerbItem
        } else if self.is_valid() && self.verb.is_some() {
            ActionType::Verb
        } else if self.is_valid() && self.movement.is_some() {
            ActionType::Movement
        } else {
            ActionType::Invalid
        }
    }
/// Determines the type of action.
Determines the type of action.
Determines the type of action .
pub fn action_type(&self) -> ActionType {
        if self.is_valid() && self.verb.is_some() && self.item.is_some() && self.subject.is_some() {
            ActionType::VerbItemSubject
        } else if self.is_valid() && self.verb.is_some() && self.subject.is_some() {
            ActionType::VerbSubject
        } else if self.is_valid() && self.verb.is_some() && self.item.is_some() {
            ActionType::VerbItem
        } else if self.is_valid() && self.verb.is_some() {
            ActionType::Verb
        } else if self.is_valid() && self.movement.is_some() {
            ActionType::Movement
        } else {
            ActionType::Invalid
        }
    }
pub fn action_type ( & self ) -> ActionType { if self . is_valid ( ) && self . verb . is_some ( ) && self . item . is_some ( ) && self . subject . is_some ( ) { ActionType :: VerbItemSubject } else if self . is_valid ( ) && self . verb . is_some ( ) && self . subject . is_some ( ) { ActionType :: VerbSubject } else if self . is_valid ( ) && self . verb . is_some ( ) && self . item . is_some ( ) { ActionType :: VerbItem } else if self . is_valid ( ) && self . verb . is_some ( ) { ActionType :: Verb } else if self . is_valid ( ) && self . movement . is_some ( ) { ActionType :: Movement } else { ActionType :: Invalid } }
Determines the type of action.
Determines the type of action .
&self
&self