pub struct SetupOptions {
pub token_file: PathBuf,
pub sets: Vec<String>,
pub resume_file: Option<PathBuf>,
pub confirmation: Confirmation,
pub expect_node: Option<DidNostr>,
pub show_text: bool,
}Expand description
Options for Session::setup.
Fields§
§token_file: PathBufThe node’s bootstrap token file, <state_dir>/bootstrap-token.
sets: Vec<String>The --set path=value arguments for the initial configuration.
resume_file: Option<PathBuf>Where the signed claim request is saved before it is sent;
<key file>.setup-resume when None.
confirmation: ConfirmationWhether to ask before claiming.
expect_node: Option<DidNostr>The node DID the operator expects (--expect-node), as stratumd
printed it at start. When given, the bootstrap token is sent only if
/readyz reports this DID and the claim body names it. When None,
setup trusts whatever answers on the loopback port.
show_text: boolAlso print the full configuration text whose SHA-256 the claim
binds (--show-text).
Trait Implementations§
Source§impl Clone for SetupOptions
impl Clone for SetupOptions
Source§impl Debug for SetupOptions
impl Debug for SetupOptions
Auto Trait Implementations§
impl Forget for SetupOptions
impl Freeze for SetupOptions
impl Move for SetupOptions
impl RefUnwindSafe for SetupOptions
impl Send for SetupOptionswhere
RawVecInner: Send,
impl Sync for SetupOptionswhere
RawVecInner: Sync,
impl Unpin for SetupOptions
impl UnsafeUnpin for SetupOptionswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for SetupOptionswhere
RawVecInner: UnwindSafe,
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