pub enum Command {
Help {
topic: HelpTopic,
json: bool,
},
Login {
open_browser: bool,
json: bool,
},
Logout {
json: bool,
},
Setup {
auto: bool,
yes: bool,
json: bool,
},
Status {
json: bool,
},
Version {
json: bool,
},
Read {
target: ReadTarget,
options: Box<ReadOptions>,
json: bool,
},
Watch {
target: WatchTarget,
json: bool,
},
Explain {
target: ExplainTarget,
json: bool,
},
Set {
target: SetTarget,
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.
Version
Prints the installed CLI version.
Read
Reads historical observability data.
Watch
Watches live observability data.
Explain
Fetches context for an issue or trace so an agent can explain it.
Set
Mutates server-side state.
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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.