pub struct SessionRpcName<'a> { /* private fields */ }Expand description
session.name.* RPCs.
Implementations§
Source§impl<'a> SessionRpcName<'a>
impl<'a> SessionRpcName<'a>
Sourcepub async fn get(&self) -> Result<NameGetResult, Error>
pub async fn get(&self) -> Result<NameGetResult, Error>
Gets the session’s friendly name.
Wire method: session.name.get.
§Returns
The session’s friendly name, or null when not yet set.
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.
Sourcepub async fn set(&self, params: NameSetRequest) -> Result<(), Error>
pub async fn set(&self, params: NameSetRequest) -> Result<(), Error>
Sets the session’s friendly name.
Wire method: session.name.set.
§Parameters
params- New friendly name to apply to the session.
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.
Sourcepub async fn set_auto(
&self,
params: NameSetAutoRequest,
) -> Result<NameSetAutoResult, Error>
pub async fn set_auto( &self, params: NameSetAutoRequest, ) -> Result<NameSetAutoResult, Error>
Persists an auto-generated session summary as the session’s name when no user-set name exists.
Wire method: session.name.setAuto.
§Parameters
params- Auto-generated session summary to apply as the session’s name when no user-set name exists.
§Returns
Indicates whether the auto-generated summary was applied as the session’s name.
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 SessionRpcName<'a>
impl<'a> Clone for SessionRpcName<'a>
Source§fn clone(&self) -> SessionRpcName<'a>
fn clone(&self) -> SessionRpcName<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more