Skip to main content

Command

Enum Command 

Source
pub enum Command {
Show 19 variants Help { topic: HelpTopic, json: bool, }, Login { provider: LoginProvider, open_browser: bool, json: bool, }, Logout { json: bool, }, Setup { auto: bool, yes: bool, json: bool, }, Status { json: bool, }, WhoAmI { json: bool, }, Doctor { project_id: String, json: bool, }, ProjectCreate { options: ProjectCreateOptions, json: bool, }, Projects { json: bool, }, Usage { json: bool, }, Version { json: bool, }, Read { target: ReadTarget, options: Box<ReadOptions>, json: bool, }, Watch { target: WatchTarget, options: WatchOptions, json: bool, }, Explain { target: ExplainTarget, json: bool, }, InvestigateIssue { issue_id: String, json: bool, }, NativeDebugArtifacts { target: NativeDebugArtifactsTarget, json: bool, }, Set { target: SetTarget, json: bool, }, ProjectSetupSeen { project_id: String, options: ProjectSetupSeenOptions, json: bool, }, Support { target: SupportTarget, json: bool, },
}
Expand description

Parsed LogBrew command.

Variants§

§

Help

Shows command usage.

Fields

§topic: HelpTopic

Help topic to display.

§json: bool

Emit machine-readable JSON.

§

Login

Opens browser-based authentication.

Fields

§provider: LoginProvider

OAuth provider to use for browser authentication.

§open_browser: bool

Try to open the login URL in the default browser.

§json: bool

Emit machine-readable JSON.

§

Logout

Removes the local CLI token.

Fields

§json: bool

Emit machine-readable JSON.

§

Setup

Detects the current project and prints a non-mutating SDK setup plan.

Fields

§auto: bool

Let the CLI pick the framework or runtime automatically.

§yes: bool

Suppress confirmation prompts.

§json: bool

Emit machine-readable JSON.

§

Status

Checks local auth and server reachability.

Fields

§json: bool

Emit machine-readable JSON.

§

WhoAmI

Returns the authenticated account identity.

Fields

§json: bool

Emit the exact validated server identity object.

§

Doctor

Checks one project through a bounded read-only diagnostic sequence.

Fields

§project_id: String

Account-owned project UUID.

§json: bool

Emit machine-readable JSON.

§

ProjectCreate

Creates one project and securely persists its one-time ingest key.

Fields

§options: ProjectCreateOptions

Normalized project creation fields and local persistence choice.

§json: bool

Emit machine-readable JSON.

§

Projects

Lists active account-owned projects.

Fields

§json: bool

Emit the exact validated bare server array.

§

Usage

Reads authenticated account usage and configured limits.

Fields

§json: bool

Emit the exact validated server object.

§

Version

Prints the installed CLI version.

Fields

§json: bool

Emit machine-readable JSON.

§

Read

Reads historical observability data.

Fields

§target: ReadTarget

Resource to read.

§options: Box<ReadOptions>

Read filters.

§json: bool

Emit machine-readable JSON.

§

Watch

Watches live observability data.

Fields

§target: WatchTarget

Resource to watch.

§options: WatchOptions

Live watch filters applied client-side.

§json: bool

Emit machine-readable JSON.

§

Explain

Fetches context for an issue or trace so an agent can explain it.

Fields

§target: ExplainTarget

Resource to explain.

§json: bool

Emit machine-readable JSON.

§

InvestigateIssue

Follows the backend-directed, read-only investigation for one issue.

Fields

§issue_id: String

Grouped issue identifier.

§json: bool

Emit machine-readable JSON.

§

NativeDebugArtifacts

Uploads or verifies Apple native debug artifacts.

Fields

§target: NativeDebugArtifactsTarget

Native debug-artifact operation.

§json: bool

Emit bounded machine-readable JSON.

§

Set

Mutates server-side state.

Fields

§target: SetTarget

Target state mutation.

§json: bool

Emit machine-readable JSON.

§

ProjectSetupSeen

Marks backend-owned project setup as seen.

Fields

§project_id: String

Project identifier.

§options: ProjectSetupSeenOptions

Optional setup metadata sent to the backend.

§json: bool

Emit machine-readable JSON.

§

Support

Creates or reads account support tickets.

Fields

§target: SupportTarget

Support-ticket operation.

§json: bool

Emit machine-readable JSON.

Implementations§

Source§

impl Command

Source

pub fn http_path(&self) -> Option<String>

Returns the HTTP API path for commands backed by a single REST request.

Source

pub const fn wants_json(&self) -> bool

Returns whether command output should be JSON.

Source

pub const fn http_method(&self) -> Option<HttpMethod>

Returns the HTTP method for commands backed by a REST request.

Source

pub fn request_body(&self) -> Option<Value>

Returns JSON request body for mutation commands.

Trait Implementations§

Source§

impl Clone for Command

Source§

fn clone(&self) -> Command

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Command

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Command

Source§

impl PartialEq for Command

Source§

fn eq(&self, other: &Command) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Command

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more