pub enum Keystore {
File(FileBasedKeystore),
InMem(InMemKeystore),
}Variants§
File(FileBasedKeystore)
InMem(InMemKeystore)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Keystore
impl<'de> Deserialize<'de> for Keystore
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
Source§impl From<FileBasedKeystore> for Keystore
impl From<FileBasedKeystore> for Keystore
Source§fn from(v: FileBasedKeystore) -> Keystore
fn from(v: FileBasedKeystore) -> Keystore
Converts to this type from the input type.
Source§impl From<InMemKeystore> for Keystore
impl From<InMemKeystore> for Keystore
Source§fn from(v: InMemKeystore) -> Keystore
fn from(v: InMemKeystore) -> Keystore
Converts to this type from the input type.
Source§impl ReadOnlyAccountKeystore for Keystore
impl ReadOnlyAccountKeystore for Keystore
Source§fn get_alias_by_address(
&self,
__enum_dispatch_arg_0: &SuiAddress,
) -> Result<String, Error>
fn get_alias_by_address( &self, __enum_dispatch_arg_0: &SuiAddress, ) -> Result<String, Error>
Get alias of address
Source§fn alias_exists(&self, __enum_dispatch_arg_0: &str) -> bool
fn alias_exists(&self, __enum_dispatch_arg_0: &str) -> bool
Check if an alias exists by its name
fn keys(&self) -> Vec<PublicKey>
fn get_key( &self, __enum_dispatch_arg_0: &SuiAddress, ) -> Result<&SuiKeyPair, Error>
fn sign_hashed( &self, __enum_dispatch_arg_0: &SuiAddress, __enum_dispatch_arg_1: &[u8], ) -> Result<Signature, Error>
fn sign_secure<T>(
&self,
__enum_dispatch_arg_0: &SuiAddress,
__enum_dispatch_arg_1: &T,
__enum_dispatch_arg_2: Intent,
) -> Result<Signature, Error>where
T: Serialize,
fn addresses(&self) -> Vec<SuiAddress>
fn addresses_with_alias(&self) -> Vec<(&SuiAddress, &Alias)>
fn aliases(&self) -> Vec<&Alias>
fn alias_names(&self) -> Vec<&str>
fn get_address_by_alias( &self, __enum_dispatch_arg_0: String, ) -> Result<&SuiAddress, Error>
Source§impl TryInto<FileBasedKeystore> for Keystore
impl TryInto<FileBasedKeystore> for Keystore
Auto Trait Implementations§
impl Freeze for Keystore
impl RefUnwindSafe for Keystore
impl Send for Keystore
impl Sync for Keystore
impl Unpin for Keystore
impl UnwindSafe for Keystore
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more