pub struct Vault { /* private fields */ }
Implementations
sourceimpl Vault
impl Vault
pub fn new(
encrypted_seed: String,
plugins: Vec<Box<dyn VaultPlugin>>,
dirty: bool
) -> Self
pub fn create(
lang_code: Option<&str>,
phrase: impl AsRef<str>,
bip39_password: impl AsRef<str>,
unlock_password: impl AsRef<str>
) -> Result<Vault>
pub fn unlock(&self, unlock_password: &str) -> Result<Seed>
pub fn plugins_by_type<T: VaultPlugin + 'static>(&self) -> Result<Vec<Box<T>>>
pub fn add(&mut self, plugin: Box<dyn VaultPlugin>) -> Result<()>
pub fn to_modifiable(&self) -> Box<dyn State<bool>>
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Vault
impl<'de> Deserialize<'de> for Vault
sourcefn 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 !RefUnwindSafe for Vault
impl Send for Vault
impl Sync for Vault
impl Unpin for Vault
impl !UnwindSafe for Vault
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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