pub struct JsValidationIssue { /* private fields */ }
Expand description
A single issue found while validating against a DID document.
@see SignedBytes.validateWithDidDoc, SignedJson.validateWithDidDoc
Implementations§
Trait Implementations§
Source§impl From<JsValidationIssue> for JsValue
impl From<JsValidationIssue> for JsValue
Source§fn from(value: JsValidationIssue) -> JsValue
fn from(value: JsValidationIssue) -> JsValue
Converts to this type from the input type.
Source§impl From<ValidationIssue> for JsValidationIssue
impl From<ValidationIssue> for JsValidationIssue
Source§fn from(inner: ValidationIssue) -> JsValidationIssue
fn from(inner: ValidationIssue) -> JsValidationIssue
Converts to this type from the input type.
Source§impl FromWasmAbi for JsValidationIssue
impl FromWasmAbi for JsValidationIssue
Source§impl IntoWasmAbi for JsValidationIssue
impl IntoWasmAbi for JsValidationIssue
Source§impl LongRefFromWasmAbi for JsValidationIssue
impl LongRefFromWasmAbi for JsValidationIssue
Source§type Anchor = RcRef<JsValidationIssue>
type Anchor = RcRef<JsValidationIssue>
Same as
RefFromWasmAbi::Anchor
Source§unsafe fn long_ref_from_abi(
js: <JsValidationIssue as LongRefFromWasmAbi>::Abi,
) -> <JsValidationIssue as LongRefFromWasmAbi>::Anchor
unsafe fn long_ref_from_abi( js: <JsValidationIssue as LongRefFromWasmAbi>::Abi, ) -> <JsValidationIssue as LongRefFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abi
Source§impl OptionFromWasmAbi for JsValidationIssue
impl OptionFromWasmAbi for JsValidationIssue
Source§fn is_none(abi: &<JsValidationIssue as FromWasmAbi>::Abi) -> bool
fn is_none(abi: &<JsValidationIssue as FromWasmAbi>::Abi) -> bool
Tests whether the argument is a “none” instance. If so it will be
deserialized as
None
, and otherwise it will be passed to
FromWasmAbi
.Source§impl OptionIntoWasmAbi for JsValidationIssue
impl OptionIntoWasmAbi for JsValidationIssue
Source§fn none() -> <JsValidationIssue as IntoWasmAbi>::Abi
fn none() -> <JsValidationIssue as IntoWasmAbi>::Abi
Returns an ABI instance indicating “none”, which JS will interpret as
the
None
branch of this option. Read moreSource§impl RefFromWasmAbi for JsValidationIssue
impl RefFromWasmAbi for JsValidationIssue
Source§type Anchor = RcRef<JsValidationIssue>
type Anchor = RcRef<JsValidationIssue>
The type that holds the reference to
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§unsafe fn ref_from_abi(
js: <JsValidationIssue as RefFromWasmAbi>::Abi,
) -> <JsValidationIssue as RefFromWasmAbi>::Anchor
unsafe fn ref_from_abi( js: <JsValidationIssue as RefFromWasmAbi>::Abi, ) -> <JsValidationIssue as RefFromWasmAbi>::Anchor
Source§impl RefMutFromWasmAbi for JsValidationIssue
impl RefMutFromWasmAbi for JsValidationIssue
Source§type Anchor = RcRefMut<JsValidationIssue>
type Anchor = RcRefMut<JsValidationIssue>
Same as
RefFromWasmAbi::Anchor
Source§unsafe fn ref_mut_from_abi(
js: <JsValidationIssue as RefMutFromWasmAbi>::Abi,
) -> <JsValidationIssue as RefMutFromWasmAbi>::Anchor
unsafe fn ref_mut_from_abi( js: <JsValidationIssue as RefMutFromWasmAbi>::Abi, ) -> <JsValidationIssue as RefMutFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abi
Source§impl TryFromJsValue for JsValidationIssue
impl TryFromJsValue for JsValidationIssue
Source§fn try_from_js_value(
value: JsValue,
) -> Result<JsValidationIssue, <JsValidationIssue as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<JsValidationIssue, <JsValidationIssue as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for JsValidationIssue
impl VectorFromWasmAbi for JsValidationIssue
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi( js: <JsValidationIssue as VectorFromWasmAbi>::Abi, ) -> Box<[JsValidationIssue]>
Source§impl VectorIntoWasmAbi for JsValidationIssue
impl VectorIntoWasmAbi for JsValidationIssue
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi( vector: Box<[JsValidationIssue]>, ) -> <JsValidationIssue as VectorIntoWasmAbi>::Abi
Source§impl Wraps<ValidationIssue> for JsValidationIssue
impl Wraps<ValidationIssue> for JsValidationIssue
Source§fn inner(&self) -> &ValidationIssue
fn inner(&self) -> &ValidationIssue
Converts a reference to a WASM type to a reference to the underlying Rust type.
Auto Trait Implementations§
impl Freeze for JsValidationIssue
impl RefUnwindSafe for JsValidationIssue
impl Send for JsValidationIssue
impl Sync for JsValidationIssue
impl Unpin for JsValidationIssue
impl UnwindSafe for JsValidationIssue
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> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.