pub struct Setup {Show 13 fields
pub network: Network,
pub source: PathBuf,
pub devnet: Option<DevnetFile>,
pub zcash: Backend,
pub zcash_key: KeySource,
pub return_address: Option<String>,
pub chains: BTreeMap<EvmChain, Chain>,
pub maker_url: Option<String>,
pub store_dir: PathBuf,
pub price: Price,
pub taker_limits: TakerLimits,
pub taker_timeouts: TakerTimeouts,
pub maker: MakerSettings,
}Expand description
Everything a command needs.
Fields§
§network: NetworkThe Zcash network.
source: PathBufWhat was read: a paralock.toml or a devnet.json.
devnet: Option<DevnetFile>The devnet, with --devnet.
zcash: BackendThe Zcash backend.
zcash_key: KeySourceTaker: the key that funds swaps.
return_address: Option<String>Taker: where change and refunds go.
chains: BTreeMap<EvmChain, Chain>The EVM chains.
maker_url: Option<String>Taker: the maker.
store_dir: PathBufBase directory of the swap stores (<dir>/taker, <dir>/maker).
price: PricePrices.
taker_limits: TakerLimitsTaker limits.
taker_timeouts: TakerTimeoutsTaker waits.
maker: MakerSettingsMaker settings.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Setup
impl RefUnwindSafe for Setup
impl Send for Setup
impl Sync for Setup
impl Unpin for Setup
impl UnsafeUnpin for Setup
impl UnwindSafe for Setup
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request