Struct ssi_dids_core::document::representation::json::Json
source · pub struct Json<D = Document>(/* private fields */);
Expand description
DID document represented as a JSON document.
Implementations§
source§impl Json
impl Json
sourcepub fn from_bytes(json: &[u8]) -> Result<Self, Error>
pub fn from_bytes(json: &[u8]) -> Result<Self, Error>
Construct a DID document from JSON bytes.
source§impl Json
impl Json
pub fn dereference_secondary_resource( self, primary_did_url: &PrimaryDIDURL, fragment: &Fragment, content_metadata: Metadata, metadata: Metadata, ) -> Result<DerefOutput, DerefError>
Trait Implementations§
source§impl<'de, D> Deserialize<'de> for Json<D>where
D: Deserialize<'de>,
impl<'de, D> Deserialize<'de> for Json<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 Json<D>where
D: Freeze,
impl<D> RefUnwindSafe for Json<D>where
D: RefUnwindSafe,
impl<D> Send for Json<D>where
D: Send,
impl<D> Sync for Json<D>where
D: Sync,
impl<D> Unpin for Json<D>where
D: Unpin,
impl<D> UnwindSafe for Json<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
.