pub struct VesselRequest {
pub article: Option<Article>,
pub name: String,
}Expand description
A basic set of Action parameters, indicating a crate::vessel::Vessel by name and (optionally) Article.
Fields§
§article: Option<Article>The Article with which to refer to the crate::vessel::Vessel.
name: StringThe name/key of the crate::vessel::Vessel being indicated.
Implementations§
Source§impl VesselRequest
impl VesselRequest
Sourcepub fn parse<'a, T: Iterator<Item = &'a str>>(
second_word: &'a str,
words: &mut T,
) -> Result<Self, Error>
pub fn parse<'a, T: Iterator<Item = &'a str>>( second_word: &'a str, words: &mut T, ) -> Result<Self, Error>
Parses a VesselRequest from the given second and following words of an action string. (The first word is always the Verb.)
Sourcepub fn parse_with_prep<'a, P: Preposition, T: Iterator<Item = &'a str>>(
second_word: &'a str,
words: &mut T,
) -> Result<(Option<P>, Self), Error>
pub fn parse_with_prep<'a, P: Preposition, T: Iterator<Item = &'a str>>( second_word: &'a str, words: &mut T, ) -> Result<(Option<P>, Self), Error>
Parses a VesselRequest and optional Preposition from the given second and following words of an action string. (The first word is always the Verb.)
Trait Implementations§
Source§impl Clone for VesselRequest
impl Clone for VesselRequest
Source§fn clone(&self) -> VesselRequest
fn clone(&self) -> VesselRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VesselRequest
impl Debug for VesselRequest
Source§impl<'de> Deserialize<'de> for VesselRequest
impl<'de> Deserialize<'de> for VesselRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for VesselRequest
Source§impl Ord for VesselRequest
impl Ord for VesselRequest
Source§fn cmp(&self, other: &VesselRequest) -> Ordering
fn cmp(&self, other: &VesselRequest) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for VesselRequest
impl PartialEq for VesselRequest
Source§fn eq(&self, other: &VesselRequest) -> bool
fn eq(&self, other: &VesselRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for VesselRequest
impl PartialOrd for VesselRequest
Source§impl Serialize for VesselRequest
impl Serialize for VesselRequest
impl StructuralPartialEq for VesselRequest
Auto Trait Implementations§
impl Freeze for VesselRequest
impl RefUnwindSafe for VesselRequest
impl Send for VesselRequest
impl Sync for VesselRequest
impl Unpin for VesselRequest
impl UnsafeUnpin for VesselRequest
impl UnwindSafe for VesselRequest
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more