pub struct RegisterArgs {
pub region: String,
pub multiaddrs: Vec<String>,
pub accept_terms: bool,
pub chain: ChainArgs,
}Expand description
decdn node register — submit CapacityBond.registerNode (ADR 019
§ Step 2.3). Performs an on-chain transaction rather than talking to a
running node’s admin RPC.
Fields§
§region: StringISO 3166-1 alpha-2 country code submitted as the on-chain
regionHint (ADR 030). Self-reported, accepted at face value.
multiaddrs: Vec<String>QUIC multiaddr to register, e.g.
/ip4/203.0.113.10/udp/4433/quic-v1. Repeatable. The node listens on
the same port over IPv4 and IPv6, so a dual-stack host also registers
/ip6/2001:db8::10/udp/4433/quic-v1. Omitted, it defaults to the
host’s public address on network.bind_port when the default route
has one. A host behind NAT registers none, and peers reach it through
the relay; pass the forwarded address here if UDP network.bind_port
is forwarded, or add it later with decdn node update-multiaddrs.
accept_terms: boolAccept the network’s current operator terms non-interactively (ADR 019 § Terms Acceptance). On a terminal the terms are shown and confirmed interactively; in automation/headless contexts this flag records the operator’s acceptance (registration will not proceed without it).
chain: ChainArgsChain coordinates: RPC endpoint, contract addresses, and keystore.
Trait Implementations§
Source§impl Args for RegisterArgs
impl Args for RegisterArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Debug for RegisterArgs
impl Debug for RegisterArgs
Source§impl FromArgMatches for RegisterArgs
impl FromArgMatches for RegisterArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Auto Trait Implementations§
impl Freeze for RegisterArgs
impl RefUnwindSafe for RegisterArgs
impl Send for RegisterArgs
impl Sync for RegisterArgs
impl Unpin for RegisterArgs
impl UnsafeUnpin for RegisterArgs
impl UnwindSafe for RegisterArgs
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
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> ⓘ
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> ⓘ
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