pub enum SubStatementObject {
Agent(Agent),
Group(Group),
StatementRef(StatementRef),
Activity(Activity),
}Expand description
Enumeration for a potential Object of a Statement itself being the Object of another; i.e. the designated variant here is the Object of the Statement referenced in a sub-statement variant.
Variants§
Agent(Agent)
The object is an Agent.
Group(Group)
The object is a Group.
StatementRef(StatementRef)
The object is a Statement-Reference.
Activity(Activity)
The object is an Activity.
Implementations§
Source§impl SubStatementObject
impl SubStatementObject
Sourcepub fn from_agent(obj: Agent) -> Self
pub fn from_agent(obj: Agent) -> Self
Coerce an Agent to a SubStatementObject.
Sourcepub fn from_group(obj: Group) -> Self
pub fn from_group(obj: Group) -> Self
Coerce a Group to a SubStatementObject.
Sourcepub fn from_statement_ref(obj: StatementRef) -> Self
pub fn from_statement_ref(obj: StatementRef) -> Self
Coerce a StatementRef to a SubStatementObject.
Sourcepub fn from_activity(obj: Activity) -> Self
pub fn from_activity(obj: Activity) -> Self
Coerce an Activity to a SubStatementObject.
Sourcepub fn is_statement_ref(&self) -> bool
pub fn is_statement_ref(&self) -> bool
Return TRUE if this is an StatementRef variant; FALSE otherwise.
Sourcepub fn is_activity(&self) -> bool
pub fn is_activity(&self) -> bool
Return TRUE if this is an Activity variant; FALSE otherwise.
Sourcepub fn as_statement_ref(&self) -> Result<StatementRef, DataError>
pub fn as_statement_ref(&self) -> Result<StatementRef, DataError>
Coerce this to a StatementRef if indeed it was an SubStatementObject::StatementRef
variant. Raise DataError if it was not.
Trait Implementations§
Source§impl Clone for SubStatementObject
impl Clone for SubStatementObject
Source§fn clone(&self) -> SubStatementObject
fn clone(&self) -> SubStatementObject
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SubStatementObject
impl Debug for SubStatementObject
Source§impl<'de> Deserialize<'de> for SubStatementObject
impl<'de> Deserialize<'de> for SubStatementObject
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>,
Source§impl Display for SubStatementObject
impl Display for SubStatementObject
Source§impl Fingerprint for SubStatementObject
impl Fingerprint for SubStatementObject
Source§impl PartialEq for SubStatementObject
impl PartialEq for SubStatementObject
Source§fn eq(&self, other: &SubStatementObject) -> bool
fn eq(&self, other: &SubStatementObject) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for SubStatementObject
impl Serialize for SubStatementObject
Source§impl Validate for SubStatementObject
impl Validate for SubStatementObject
Source§fn validate(&self) -> Vec<ValidationError>
fn validate(&self) -> Vec<ValidationError>
Source§fn is_valid(&self) -> bool
fn is_valid(&self) -> bool
Source§fn check_validity(&self) -> Result<(), ValidationError>
fn check_validity(&self) -> Result<(), ValidationError>
impl StructuralPartialEq for SubStatementObject
Auto Trait Implementations§
impl Freeze for SubStatementObject
impl RefUnwindSafe for SubStatementObject
impl Send for SubStatementObject
impl Sync for SubStatementObject
impl Unpin for SubStatementObject
impl UnsafeUnpin for SubStatementObject
impl UnwindSafe for SubStatementObject
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
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.