pub struct ContextGroup { /* private fields */ }Expand description
Similar to ContextAgent this structure captures a relationship between a Statement and one or more Group(s) –besides the Actor– in order to properly describe an experience.
Implementations§
Source§impl ContextGroup
impl ContextGroup
Sourcepub fn builder() -> ContextGroupBuilder
pub fn builder() -> ContextGroupBuilder
Return a ContextGroup Builder
Sourcepub fn check_object_type(&self) -> bool
pub fn check_object_type(&self) -> bool
Return TRUE if the objectType property is ContextGroup; FALSE
otherwise.
Sourcepub fn relevant_types(&self) -> &[IriString] ⓘ
pub fn relevant_types(&self) -> &[IriString] ⓘ
Return relevant_types field as an array of IRIs.
Trait Implementations§
Source§impl Clone for ContextGroup
impl Clone for ContextGroup
Source§fn clone(&self) -> ContextGroup
fn clone(&self) -> ContextGroup
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 ContextGroup
impl Debug for ContextGroup
Source§impl<'de> Deserialize<'de> for ContextGroup
impl<'de> Deserialize<'de> for ContextGroup
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 ContextGroup
impl Display for ContextGroup
Source§impl Fingerprint for ContextGroup
impl Fingerprint for ContextGroup
Source§impl PartialEq for ContextGroup
impl PartialEq for ContextGroup
Source§fn eq(&self, other: &ContextGroup) -> bool
fn eq(&self, other: &ContextGroup) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ContextGroup
impl Serialize for ContextGroup
Source§impl Validate for ContextGroup
impl Validate for ContextGroup
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 ContextGroup
Auto Trait Implementations§
impl Freeze for ContextGroup
impl RefUnwindSafe for ContextGroup
impl Send for ContextGroup
impl Sync for ContextGroup
impl Unpin for ContextGroup
impl UnsafeUnpin for ContextGroup
impl UnwindSafe for ContextGroup
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.