Struct json_ld_core::loader::RemoteDocument
source · Implementations
sourceimpl<I, M, T> RemoteDocument<I, M, T>
impl<I, M, T> RemoteDocument<I, M, T>
pub fn new(url: Option<I>, document: Meta<T, M>) -> Self
pub fn map<U, N>(
self,
f: impl Fn(Meta<T, M>) -> Meta<U, N>
) -> RemoteDocument<I, N, U>
pub fn try_map<U, N, E>(
self,
f: impl Fn(Meta<T, M>) -> Result<Meta<U, N>, E>
) -> Result<RemoteDocument<I, N, U>, E>
pub fn url(&self) -> Option<&I>
pub fn document(&self) -> &Meta<T, M>
pub fn into_document(self) -> Meta<T, M>
pub fn into_url(self) -> Option<I>
pub fn set_url(&mut self, url: Option<I>)
Trait Implementations
sourceimpl<I: Clone, M: Clone, T: Clone> Clone for RemoteDocument<I, M, T>
impl<I: Clone, M: Clone, T: Clone> Clone for RemoteDocument<I, M, T>
sourcefn clone(&self) -> RemoteDocument<I, M, T>
fn clone(&self) -> RemoteDocument<I, M, T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl<I, M, T> RefUnwindSafe for RemoteDocument<I, M, T>where
I: RefUnwindSafe,
M: RefUnwindSafe,
T: RefUnwindSafe,
impl<I, M, T> Send for RemoteDocument<I, M, T>where
I: Send,
M: Send,
T: Send,
impl<I, M, T> Sync for RemoteDocument<I, M, T>where
I: Sync,
M: Sync,
T: Sync,
impl<I, M, T> Unpin for RemoteDocument<I, M, T>where
I: Unpin,
M: Unpin,
T: Unpin,
impl<I, M, T> UnwindSafe for RemoteDocument<I, M, T>where
I: UnwindSafe,
M: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more