pub struct CreateSessionRequest {
pub title: String,
pub visibility: Option<SessionVisibility>,
pub cwd: Option<String>,
pub state: CheckpointState,
}Expand description
Request to create a session (with initial checkpoint state)
Fields§
§title: StringSession title
visibility: Option<SessionVisibility>Session visibility
cwd: Option<String>Working directory
state: CheckpointStateInitial checkpoint state with messages
Implementations§
Source§impl CreateSessionRequest
impl CreateSessionRequest
Sourcepub fn new(title: impl Into<String>, state: CheckpointState) -> Self
pub fn new(title: impl Into<String>, state: CheckpointState) -> Self
Create a new session request with initial state
Sourcepub fn with_visibility(self, visibility: SessionVisibility) -> Self
pub fn with_visibility(self, visibility: SessionVisibility) -> Self
Set visibility
Trait Implementations§
Source§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> 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