pub struct ContextSource {
pub source_id: Option<String>,
pub source_type: Option<String>,
pub source_uri: String,
}
Expand description
A structure describing the source of a context.
Fields§
§source_id: Option<String>
The ID of the source.
source_type: Option<String>
The type of the source.
source_uri: String
The URI of the source.
Trait Implementations§
Source§impl Clone for ContextSource
impl Clone for ContextSource
Source§fn clone(&self) -> ContextSource
fn clone(&self) -> ContextSource
Returns a duplicate of the value. Read more
1.0.0 · 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 ContextSource
impl Debug for ContextSource
Source§impl Default for ContextSource
impl Default for ContextSource
Source§fn default() -> ContextSource
fn default() -> ContextSource
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContextSource
impl<'de> Deserialize<'de> for ContextSource
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 PartialEq for ContextSource
impl PartialEq for ContextSource
Source§impl Serialize for ContextSource
impl Serialize for ContextSource
impl StructuralPartialEq for ContextSource
Auto Trait Implementations§
impl Freeze for ContextSource
impl RefUnwindSafe for ContextSource
impl Send for ContextSource
impl Sync for ContextSource
impl Unpin for ContextSource
impl UnwindSafe for ContextSource
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