pub struct ClientRpcCommands<'a> { /* private fields */ }Expand description
commands.* RPCs.
Implementations§
Source§impl<'a> ClientRpcCommands<'a>
impl<'a> ClientRpcCommands<'a>
Sourcepub async fn list(&self) -> Result<CommandList, Error>
pub async fn list(&self) -> Result<CommandList, Error>
Lists the well-known built-in slash commands that work as the first message in a new session (e.g. /plan, /env), without requiring an active session. Commands that depend on session state, authentication, or a synced session are omitted.
Wire method: commands.list.
§Returns
Slash commands available in the session, after applying any include/exclude filters.
Experimental. This API is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases. Pin both the SDK and CLI versions if your code depends on it.
Trait Implementations§
Source§impl<'a> Clone for ClientRpcCommands<'a>
impl<'a> Clone for ClientRpcCommands<'a>
Source§fn clone(&self) -> ClientRpcCommands<'a>
fn clone(&self) -> ClientRpcCommands<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for ClientRpcCommands<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ClientRpcCommands<'a>
impl<'a> !UnwindSafe for ClientRpcCommands<'a>
impl<'a> Freeze for ClientRpcCommands<'a>
impl<'a> Send for ClientRpcCommands<'a>
impl<'a> Sync for ClientRpcCommands<'a>
impl<'a> Unpin for ClientRpcCommands<'a>
impl<'a> UnsafeUnpin for ClientRpcCommands<'a>
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