Enum ssi_dids_core::document::representation::Represented
source · pub enum Represented<D = Document> {
Json(Json<D>),
JsonLd(JsonLd<D>),
}
Expand description
DID document in a specific representation.
Variants§
Implementations§
source§impl<D> Represented<D>
impl<D> Represented<D>
source§impl Represented
impl Represented
pub fn dereference_secondary_resource( self, primary_did_url: &PrimaryDIDURL, fragment: &Fragment, content_metadata: Metadata, metadata: Metadata, ) -> Result<DerefOutput, DerefError>
Trait Implementations§
source§impl<D: Clone> Clone for Represented<D>
impl<D: Clone> Clone for Represented<D>
source§fn clone(&self) -> Represented<D>
fn clone(&self) -> Represented<D>
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<D: Debug> Debug for Represented<D>
impl<D: Debug> Debug for Represented<D>
source§impl<D> Deref for Represented<D>
impl<D> Deref for Represented<D>
source§impl<'de, D> Deserialize<'de> for Represented<D>where
D: Deserialize<'de>,
impl<'de, D> Deserialize<'de> for Represented<D>where
D: Deserialize<'de>,
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
Auto Trait Implementations§
impl<D> Freeze for Represented<D>where
D: Freeze,
impl<D> RefUnwindSafe for Represented<D>where
D: RefUnwindSafe,
impl<D> Send for Represented<D>where
D: Send,
impl<D> Sync for Represented<D>where
D: Sync,
impl<D> Unpin for Represented<D>where
D: Unpin,
impl<D> UnwindSafe for Represented<D>where
D: UnwindSafe,
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> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<'de, T, C> DeserializeTyped<'de, C> for Twhere
T: Deserialize<'de>,
impl<'de, T, C> DeserializeTyped<'de, C> for Twhere
T: Deserialize<'de>,
fn deserialize_typed<S>(
_: &C,
deserializer: S,
) -> Result<T, <S as Deserializer<'de>>::Error>where
S: Deserializer<'de>,
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, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
source§impl<T> ResourceProvider<()> for T
impl<T> ResourceProvider<()> for T
source§fn get_resource(&self) -> &()
fn get_resource(&self) -> &()
Returns a reference to the resource of type
T
.