Struct ssi_json_ld::ContextLoader
source · pub struct ContextLoader { /* private fields */ }Implementations§
source§impl ContextLoader
impl ContextLoader
sourcepub fn with_static_loader(self) -> Self
pub fn with_static_loader(self) -> Self
Using the builder pattern, the StaticLoader can be enabled so that contexts are checked against it before being checked against context_map.
sourcepub fn with_context_map_from(
self,
preparsed_context_map: HashMap<String, String>
) -> Result<Self, FromContextMapError>
pub fn with_context_map_from( self, preparsed_context_map: HashMap<String, String> ) -> Result<Self, FromContextMapError>
Using the builder pattern, the map of additional contexts can be set. These context objects will be checked after StaticLoader (if it’s specified). preparsed_context_map should map the context URLs to their JSON content.
Trait Implementations§
source§impl Clone for ContextLoader
impl Clone for ContextLoader
source§fn clone(&self) -> ContextLoader
fn clone(&self) -> ContextLoader
Returns a copy 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 ContextLoader
impl Debug for ContextLoader
source§impl Default for ContextLoader
impl Default for ContextLoader
The default ContextLoader only uses StaticLoader.
source§impl Loader<IriBuf, Span> for ContextLoader
impl Loader<IriBuf, Span> for ContextLoader
§type Error = UnknownContext
type Error = UnknownContext
Error type.
Auto Trait Implementations§
impl !RefUnwindSafe for ContextLoader
impl Send for ContextLoader
impl Sync for ContextLoader
impl Unpin for ContextLoader
impl !UnwindSafe for ContextLoader
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