pub struct ContextReference { /* private fields */ }Expand description
Structured reference material associated with a context bundle.
Implementations§
Source§impl ContextReference
impl ContextReference
pub fn new( reference_id: impl Into<String>, uri: impl Into<String>, title: Option<String>, media_type: Option<String>, attributes: Attributes, ) -> Result<Self, DomainError>
pub fn reference_id(&self) -> &str
pub fn uri(&self) -> &str
pub fn title(&self) -> Option<&str>
pub fn media_type(&self) -> Option<&str>
pub fn attributes(&self) -> &Attributes
Trait Implementations§
Source§impl Clone for ContextReference
impl Clone for ContextReference
Source§fn clone(&self) -> ContextReference
fn clone(&self) -> ContextReference
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 ContextReference
impl Debug for ContextReference
Source§impl<'de> Deserialize<'de> for ContextReference
impl<'de> Deserialize<'de> for ContextReference
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 ContextReference
Source§impl PartialEq for ContextReference
impl PartialEq for ContextReference
Source§impl Serialize for ContextReference
impl Serialize for ContextReference
impl StructuralPartialEq for ContextReference
Auto Trait Implementations§
impl Freeze for ContextReference
impl RefUnwindSafe for ContextReference
impl Send for ContextReference
impl Sync for ContextReference
impl Unpin for ContextReference
impl UnsafeUnpin for ContextReference
impl UnwindSafe for ContextReference
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