pub struct Ctx {
Show 17 fields pub flight_ctx: LateInit<FlightCtx>, pub formation_ctx: LateInit<FormationCtx>, pub md_ctx: LateInit<MetadataCtx>, pub locks_ctx: LateInit<LocksCtx>, pub restrict_ctx: LateInit<RestrictCtx>, pub conf_files: Vec<PathBuf>, pub args: Args, pub db: Db, pub internal_run: bool, pub did_init: bool, pub disable_pb: bool, pub compute_url: Option<Url>, pub identity_url: Option<Url>, pub metadata_url: Option<Url>, pub locks_url: Option<Url>, pub insecure_urls: bool, pub invalid_certs: bool, /* private fields */
}
Expand description

The source of truth “Context” that is passed to all runtime processes to make decisions based on user configuration

Fields

flight_ctx: LateInit<FlightCtx>

Context relate to exclusively to Flight operations and commands

formation_ctx: LateInit<FormationCtx>

Context relate to exclusively to Formation operations and commands

md_ctx: LateInit<MetadataCtx>

Context relate to exclusively to key-value operations and commands

locks_ctx: LateInit<LocksCtx>

Context relate to exclusively to Locks operations and commands

restrict_ctx: LateInit<RestrictCtx>

Context relate to exclusively to Restrict operations and commands

conf_files: Vec<PathBuf>

Where the configuration files were loaded from

args: Args

Common CLI arguments

db: Db

The in memory databases

internal_run: bool

Allows tracking if we’re running a command internally and skippy certain checks or output

did_init: bool

Did we run initialization automatically or not on startup?

disable_pb: bool

Disable progress bar indicators

compute_url: Option<Url>

Set the base URL for the request

identity_url: Option<Url>metadata_url: Option<Url>locks_url: Option<Url>insecure_urls: boolinvalid_certs: bool

Implementations

Write out an entirely new JSON file if --stateless wasn’t used

Write out an entirely new JSON file if --stateless wasn’t used

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more