pub struct WalletConfig {
pub name: String,
pub path: String,
pub hotkey: String,
}Fields§
§name: String§path: String§hotkey: StringImplementations§
Source§impl WalletConfig
impl WalletConfig
Sourcepub fn new(
name: Option<String>,
hotkey: Option<String>,
path: Option<String>,
) -> Self
pub fn new( name: Option<String>, hotkey: Option<String>, path: Option<String>, ) -> Self
Creates a new WalletConfig instance.
Arguments:
name (Option<String>): Optional wallet name. Defaults to "default" if not provided.
hotkey (Option<String>): Optional hotkey name. Defaults to "default" if not provided.
path (Option<String>): Optional wallet path. Defaults to "~/.bittensor/wallets/" if not provided.
Returns:
wallet_config (WalletConfig): A new WalletConfig instance.Trait Implementations§
Source§impl Clone for WalletConfig
impl Clone for WalletConfig
Source§fn clone(&self) -> WalletConfig
fn clone(&self) -> WalletConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WalletConfig
impl RefUnwindSafe for WalletConfig
impl Send for WalletConfig
impl Sync for WalletConfig
impl Unpin for WalletConfig
impl UnsafeUnpin for WalletConfig
impl UnwindSafe for WalletConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> 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 moreSource§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> for T
Source§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
Source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to
unchecked_from.