pub struct SessionCreateOptions {
pub parent_id: Option<String>,
pub title: Option<String>,
pub directory: Option<String>,
pub permission: Option<Ruleset>,
}Expand description
Convenience options for creating a new session.
Fields§
§parent_id: Option<String>Parent session ID to fork from.
title: Option<String>Optional title for the new session.
directory: Option<String>Optional directory to create the session in.
permission: Option<Ruleset>Initial permission ruleset.
Implementations§
Source§impl SessionCreateOptions
impl SessionCreateOptions
Sourcepub fn with_parent_id(self, parent_id: impl Into<String>) -> Self
pub fn with_parent_id(self, parent_id: impl Into<String>) -> Self
Set session parent ID.
Sourcepub fn with_title(self, title: impl Into<String>) -> Self
pub fn with_title(self, title: impl Into<String>) -> Self
Set session title.
Sourcepub fn with_directory(self, directory: impl Into<String>) -> Self
pub fn with_directory(self, directory: impl Into<String>) -> Self
Set session directory.
Sourcepub fn with_permission(self, permission: Ruleset) -> Self
pub fn with_permission(self, permission: Ruleset) -> Self
Set initial permission ruleset.
Trait Implementations§
Source§impl Clone for SessionCreateOptions
impl Clone for SessionCreateOptions
Source§fn clone(&self) -> SessionCreateOptions
fn clone(&self) -> SessionCreateOptions
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 SessionCreateOptions
impl Debug for SessionCreateOptions
Source§impl Default for SessionCreateOptions
impl Default for SessionCreateOptions
Source§fn default() -> SessionCreateOptions
fn default() -> SessionCreateOptions
Returns the “default value” for a type. Read more
Source§impl From<SessionCreateOptions> for CreateSessionRequest
impl From<SessionCreateOptions> for CreateSessionRequest
Source§fn from(value: SessionCreateOptions) -> Self
fn from(value: SessionCreateOptions) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SessionCreateOptions
impl RefUnwindSafe for SessionCreateOptions
impl Send for SessionCreateOptions
impl Sync for SessionCreateOptions
impl Unpin for SessionCreateOptions
impl UnwindSafe for SessionCreateOptions
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