pub enum Command {
Show 18 variants
Help {
topic: HelpTopic,
json: bool,
},
Login {
open_browser: bool,
json: bool,
},
Logout {
json: bool,
},
Setup {
auto: bool,
yes: bool,
json: bool,
},
Status {
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.
Login
Opens browser-based authentication.
Fields
Logout
Removes the local CLI token.
Setup
Detects the current project and prints a non-mutating SDK setup plan.
Fields
Status
Checks local auth and server reachability.
Doctor
Checks one project through a bounded read-only diagnostic sequence.
ProjectCreate
Creates one project and securely persists its one-time ingest key.
Fields
options: ProjectCreateOptionsNormalized project creation fields and local persistence choice.
Projects
Lists active account-owned projects.
Usage
Reads authenticated account usage and configured limits.
Version
Prints the installed CLI version.
Read
Reads historical observability data.
Watch
Watches live observability data.
Fields
target: WatchTargetResource to watch.
options: WatchOptionsLive watch filters applied client-side.
Explain
Fetches context for an issue or trace so an agent can explain it.
InvestigateIssue
Follows the backend-directed, read-only investigation for one issue.
NativeDebugArtifacts
Uploads or verifies Apple native debug artifacts.
Fields
target: NativeDebugArtifactsTargetNative debug-artifact operation.
Set
Mutates server-side state.
ProjectSetupSeen
Marks backend-owned project setup as seen.
Fields
options: ProjectSetupSeenOptionsOptional setup metadata sent to the backend.
Support
Creates or reads account support tickets.
Implementations§
Source§impl Command
impl Command
Sourcepub fn http_path(&self) -> Option<String>
pub fn http_path(&self) -> Option<String>
Returns the HTTP API path for commands backed by a single REST request.
Sourcepub const fn wants_json(&self) -> bool
pub const fn wants_json(&self) -> bool
Returns whether command output should be JSON.
Sourcepub const fn http_method(&self) -> Option<HttpMethod>
pub const fn http_method(&self) -> Option<HttpMethod>
Returns the HTTP method for commands backed by a REST request.
Sourcepub fn request_body(&self) -> Option<Value>
pub fn request_body(&self) -> Option<Value>
Returns JSON request body for mutation commands.
Trait Implementations§
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.