pub struct DocumentLoader { /* private fields */ }Implementations§
Source§impl DocumentLoader
impl DocumentLoader
pub fn new( docs: Option<HashMap<String, VerificationDocument>>, ) -> Result<Self, FiError>
pub fn get_verification_document( &mut self, url: &str, ) -> Option<VerificationDocument>
Trait Implementations§
Source§impl From<DocumentLoader> for JsValue
impl From<DocumentLoader> for JsValue
Source§fn from(value: DocumentLoader) -> Self
fn from(value: DocumentLoader) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for DocumentLoader
impl FromWasmAbi for DocumentLoader
Source§impl IntoWasmAbi for DocumentLoader
impl IntoWasmAbi for DocumentLoader
Source§impl LongRefFromWasmAbi for DocumentLoader
impl LongRefFromWasmAbi for DocumentLoader
Source§type Abi = WasmPtr<WasmRefCell<DocumentLoader>>
type Abi = WasmPtr<WasmRefCell<DocumentLoader>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRef<DocumentLoader>
type Anchor = RcRef<DocumentLoader>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl OptionFromWasmAbi for DocumentLoader
impl OptionFromWasmAbi for DocumentLoader
Source§impl OptionIntoWasmAbi for DocumentLoader
impl OptionIntoWasmAbi for DocumentLoader
Source§impl RefFromWasmAbi for DocumentLoader
impl RefFromWasmAbi for DocumentLoader
Source§type Abi = WasmPtr<WasmRefCell<DocumentLoader>>
type Abi = WasmPtr<WasmRefCell<DocumentLoader>>
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = RcRef<DocumentLoader>
type Anchor = RcRef<DocumentLoader>
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§impl RefMutFromWasmAbi for DocumentLoader
impl RefMutFromWasmAbi for DocumentLoader
Source§type Abi = WasmPtr<WasmRefCell<DocumentLoader>>
type Abi = WasmPtr<WasmRefCell<DocumentLoader>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRefMut<DocumentLoader>
type Anchor = RcRefMut<DocumentLoader>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiimpl SupportsConstructor for DocumentLoader
impl SupportsInstanceProperty for DocumentLoader
impl SupportsStaticProperty for DocumentLoader
Source§impl TryFromJsValue for DocumentLoader
impl TryFromJsValue for DocumentLoader
Source§impl VectorFromWasmAbi for DocumentLoader
impl VectorFromWasmAbi for DocumentLoader
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[DocumentLoader]>
Source§impl VectorIntoWasmAbi for DocumentLoader
impl VectorIntoWasmAbi for DocumentLoader
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[DocumentLoader]>) -> Self::Abi
Source§impl WasmDescribeVector for DocumentLoader
impl WasmDescribeVector for DocumentLoader
Auto Trait Implementations§
impl !RefUnwindSafe for DocumentLoader
impl !Send for DocumentLoader
impl !Sync for DocumentLoader
impl !UnwindSafe for DocumentLoader
impl Freeze for DocumentLoader
impl Unpin for DocumentLoader
impl UnsafeUnpin for DocumentLoader
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
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::AbiSource§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.