pub struct EditableSession {
pub name: String,
pub tags: Vec<String>,
pub shell: String,
pub os: String,
pub hostname: String,
pub commands: Vec<EditableCommand>,
}Expand description
Editable representation of a session for TOML serialization.
Contains only the fields that users should be able to modify.
Non-editable fields (id, version, started_at, ended_at, env) are
preserved from the original session during round-trip.
Fields§
§name: StringHuman-readable session name
User-defined tags
shell: StringShell type
os: StringOperating system info
hostname: StringMachine hostname
commands: Vec<EditableCommand>Editable commands
Trait Implementations§
Source§impl Clone for EditableSession
impl Clone for EditableSession
Source§fn clone(&self) -> EditableSession
fn clone(&self) -> EditableSession
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 EditableSession
impl Debug for EditableSession
Source§impl<'de> Deserialize<'de> for EditableSession
impl<'de> Deserialize<'de> for EditableSession
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EditableSession
impl RefUnwindSafe for EditableSession
impl Send for EditableSession
impl Sync for EditableSession
impl Unpin for EditableSession
impl UnwindSafe for EditableSession
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