pub struct CreateSessionRequest {
pub title: String,
pub visibility: SessionVisibility,
pub cwd: Option<String>,
pub initial_state: CheckpointState,
}Expand description
Request to create a session with initial checkpoint
Fields§
§title: String§visibility: SessionVisibility§cwd: Option<String>§initial_state: CheckpointStateImplementations§
Source§impl CreateSessionRequest
impl CreateSessionRequest
pub fn new(title: impl Into<String>, messages: Vec<ChatMessage>) -> Self
pub fn with_visibility(self, visibility: SessionVisibility) -> Self
pub fn with_cwd(self, cwd: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for CreateSessionRequest
impl Clone for CreateSessionRequest
Source§fn clone(&self) -> CreateSessionRequest
fn clone(&self) -> CreateSessionRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateSessionRequest
impl Debug for CreateSessionRequest
Auto Trait Implementations§
impl Freeze for CreateSessionRequest
impl RefUnwindSafe for CreateSessionRequest
impl Send for CreateSessionRequest
impl Sync for CreateSessionRequest
impl Unpin for CreateSessionRequest
impl UnwindSafe for CreateSessionRequest
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request