pub struct SetupOptions {
pub instance: String,
pub token_source: Option<SharedTokenSource>,
pub accept_terms: bool,
pub github_account: String,
pub github_port: u16,
pub no_browser: bool,
pub out: Option<MessageSink>,
pub open_url: Option<UrlOpener>,
}Expand description
Selects the organization for workspaces_status and enable_workspaces.
Fields§
§instance: StringThe organization ID. If empty, $CHAINCTL_SANDBOX_INSTANCE is used, and failing that the
only organization you belong to.
token_source: Option<SharedTokenSource>Mints tokens for the platform API (default: the saved login).
accept_terms: boolLets enable_workspaces accept, on the organization’s behalf, the legal documents it has
not accepted yet. Set it only when the person running your program has read and agreed to
them (workspaces_status lists them, with URLs). Status ignores it.
github_account: StringThe GitHub organization or user to link when the organization has none linked (enable only). Empty means the GitHub user who authorizes in the browser.
github_port: u16The loopback port for GitHub’s redirect (0: 8989).
no_browser: boolStops enabling from opening a browser for the GitHub authorization; it then fails with
Error::GitHubLinkRequired if a link is needed.
out: Option<MessageSink>Receives instructions during the GitHub authorization (default stderr).
open_url: Option<UrlOpener>Opens GitHub’s authorization page (default: the system browser).
Trait Implementations§
Source§impl Clone for SetupOptions
impl Clone for SetupOptions
Source§fn clone(&self) -> SetupOptions
fn clone(&self) -> SetupOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SetupOptions
impl Debug for SetupOptions
Source§impl Default for SetupOptions
impl Default for SetupOptions
Source§fn default() -> SetupOptions
fn default() -> SetupOptions
Auto Trait Implementations§
impl Freeze for SetupOptions
impl !RefUnwindSafe for SetupOptions
impl Send for SetupOptions
impl Sync for SetupOptions
impl Unpin for SetupOptions
impl UnsafeUnpin for SetupOptions
impl !UnwindSafe for SetupOptions
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].