#[non_exhaustive]pub struct ListSessionsRequest {
pub cwd: Option<PathBuf>,
pub cursor: Option<String>,
pub meta: Option<Meta>,
}Expand description
Request parameters for listing existing sessions.
Only available if the Agent supports the sessionCapabilities.list capability.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.cwd: Option<PathBuf>Filter sessions by working directory. Must be an absolute path.
cursor: Option<String>Opaque cursor token from a previous response’s nextCursor field for cursor-based pagination
meta: Option<Meta>The _meta property is reserved by ACP to allow clients and agents to attach additional metadata to their interactions. Implementations MUST NOT make assumptions about values at these keys.
See protocol docs: Extensibility
Implementations§
Source§impl ListSessionsRequest
impl ListSessionsRequest
Sourcepub fn new() -> Self
pub fn new() -> Self
Builds ListSessionsRequest with the required request fields set; optional fields start unset or empty.
Sourcepub fn cwd(self, cwd: impl IntoOption<PathBuf>) -> Self
pub fn cwd(self, cwd: impl IntoOption<PathBuf>) -> Self
Filter sessions by working directory. Must be an absolute path.
Sourcepub fn cursor(self, cursor: impl IntoOption<String>) -> Self
pub fn cursor(self, cursor: impl IntoOption<String>) -> Self
Opaque cursor token from a previous response’s nextCursor field for cursor-based pagination
Sourcepub fn meta(self, meta: impl IntoOption<Meta>) -> Self
pub fn meta(self, meta: impl IntoOption<Meta>) -> Self
The _meta property is reserved by ACP to allow clients and agents to attach additional metadata to their interactions. Implementations MUST NOT make assumptions about values at these keys.
See protocol docs: Extensibility
Trait Implementations§
Source§impl Clone for ListSessionsRequest
impl Clone for ListSessionsRequest
Source§fn clone(&self) -> ListSessionsRequest
fn clone(&self) -> ListSessionsRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ListSessionsRequest
impl Debug for ListSessionsRequest
Source§impl Default for ListSessionsRequest
impl Default for ListSessionsRequest
Source§fn default() -> ListSessionsRequest
fn default() -> ListSessionsRequest
Source§impl<'de> Deserialize<'de> for ListSessionsRequest
impl<'de> Deserialize<'de> for ListSessionsRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for ListSessionsRequest
Source§impl IntoV2 for ListSessionsRequest
Available on crate feature unstable_protocol_v2 only.
impl IntoV2 for ListSessionsRequest
unstable_protocol_v2 only.Source§impl JsonSchema for ListSessionsRequest
impl JsonSchema for ListSessionsRequest
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for ListSessionsRequest
impl PartialEq for ListSessionsRequest
Source§fn eq(&self, other: &ListSessionsRequest) -> bool
fn eq(&self, other: &ListSessionsRequest) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for ListSessionsRequest
impl Serialize for ListSessionsRequest
impl StructuralPartialEq for ListSessionsRequest
Auto Trait Implementations§
impl Freeze for ListSessionsRequest
impl RefUnwindSafe for ListSessionsRequest
impl Send for ListSessionsRequest
impl Sync for ListSessionsRequest
impl Unpin for ListSessionsRequest
impl UnsafeUnpin for ListSessionsRequest
impl UnwindSafe for ListSessionsRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.