pub struct SubStatement { /* private fields */ }Expand description
Alternative representation of a Statement when referenced as the object of another.
Implementations§
Source§impl SubStatement
impl SubStatement
Sourcepub fn builder() -> SubStatementBuilder
pub fn builder() -> SubStatementBuilder
Return a SubStatement Builder.
Sourcepub fn check_object_type(&self) -> bool
pub fn check_object_type(&self) -> bool
Return TRUE if the objectType property is SubStatement; FALSE
otherwise.
Sourcepub fn object(&self) -> &SubStatementObject
pub fn object(&self) -> &SubStatementObject
Sourcepub fn context(&self) -> Option<&Context>
pub fn context(&self) -> Option<&Context>
Return the Context of this instance if set; None otherwise.
Sourcepub fn timestamp(&self) -> Option<&DateTime<Utc>>
pub fn timestamp(&self) -> Option<&DateTime<Utc>>
Return timestamp of when the events described in this SubStatement
occurred if set; None otherwise.
It’s set by the LRS if not provided.
Sourcepub fn attachments(&self) -> Option<&[Attachment]>
pub fn attachments(&self) -> Option<&[Attachment]>
Return attachments if set; None otherwise.
Sourcepub fn equivalent(&self, that: &SubStatement) -> bool
pub fn equivalent(&self, that: &SubStatement) -> bool
Return TRUE if this is Equivalent to that; FALSE otherwise.
Trait Implementations§
Source§impl Clone for SubStatement
impl Clone for SubStatement
Source§fn clone(&self) -> SubStatement
fn clone(&self) -> SubStatement
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 SubStatement
impl Debug for SubStatement
Source§impl<'de> Deserialize<'de> for SubStatement
impl<'de> Deserialize<'de> for SubStatement
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 Display for SubStatement
impl Display for SubStatement
Source§impl Fingerprint for SubStatement
impl Fingerprint for SubStatement
Source§impl PartialEq for SubStatement
impl PartialEq for SubStatement
Source§fn eq(&self, other: &SubStatement) -> bool
fn eq(&self, other: &SubStatement) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SubStatement
impl Serialize for SubStatement
Source§impl Validate for SubStatement
impl Validate for SubStatement
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 StructuralPartialEq for SubStatement
Auto Trait Implementations§
impl Freeze for SubStatement
impl RefUnwindSafe for SubStatement
impl Send for SubStatement
impl Sync for SubStatement
impl Unpin for SubStatement
impl UnsafeUnpin for SubStatement
impl UnwindSafe for SubStatement
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.