pub struct Verb { /* private fields */ }Expand description
Implementations§
Source§impl Verb
impl Verb
Sourcepub fn builder() -> VerbBuilder<'static>
pub fn builder() -> VerbBuilder<'static>
Return a Verb Builder.
Sourcepub fn is_voided(&self) -> bool
pub fn is_voided(&self) -> bool
Return TRUE if this is the voided special verb; FALSE otherwise.
Sourcepub fn display(&self, tag: &MyLanguageTag) -> Option<&str>
pub fn display(&self, tag: &MyLanguageTag) -> Option<&str>
Sourcepub fn display_as_map(&self) -> Option<&LanguageMap>
pub fn display_as_map(&self) -> Option<&LanguageMap>
Return a reference to the display if this instance has
one; None otherwise.
Sourcepub fn equivalent(&self, that: &Verb) -> bool
pub fn equivalent(&self, that: &Verb) -> bool
Return TRUE if this is Equivalent to that; FALSE otherwise.
Sourcepub fn extend(&mut self, other: Verb) -> bool
pub fn extend(&mut self, other: Verb) -> bool
Extend this instance’s display language-map from bindings present
in other. Entries present in other but not in self are added
to the latter, while values in other with same keys will replace
current values in self.
Return TRUE if this instance was modified, FALSE otherwise.
Trait Implementations§
Source§impl Canonical for Verb
impl Canonical for Verb
Source§fn canonicalize(&mut self, tags: &[MyLanguageTag])
fn canonicalize(&mut self, tags: &[MyLanguageTag])
Reduce
self to conform to its canonical format as defined in xAPI
keeping the most appropriate entry given a list of preferred language
tags.Source§impl<'de> Deserialize<'de> for Verb
impl<'de> Deserialize<'de> for Verb
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
Source§impl Fingerprint for Verb
impl Fingerprint for Verb
Source§impl Validate for Verb
impl Validate for Verb
Source§fn validate(&self) -> Vec<ValidationError>
fn validate(&self) -> Vec<ValidationError>
Validate the instance and return a potentially empty collection of
ValidationError.
Source§fn is_valid(&self) -> bool
fn is_valid(&self) -> bool
Convenience method to quickly assert if the type implementing this
trait is indeed valid. Read more
Source§fn check_validity(&self) -> Result<(), ValidationError>
fn check_validity(&self) -> Result<(), ValidationError>
Convenience method that checks the validity of a Validate instance and
raises a ValidationError if it was found to be invalid.
impl Eq for Verb
impl StructuralPartialEq for Verb
Auto Trait Implementations§
impl Freeze for Verb
impl RefUnwindSafe for Verb
impl Send for Verb
impl Sync for Verb
impl Unpin for Verb
impl UnsafeUnpin for Verb
impl UnwindSafe for Verb
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.