pub struct SessionFile {
pub schema: u32,
pub app: AppInfo,
pub created_utc: String,
pub platform: Option<String>,
pub capture: Option<CaptureKind>,
pub name: Option<String>,
pub monitors: Vec<MonitorRecord>,
pub target: Option<TargetRecord>,
pub selections: Vec<SelectionRecord>,
}Fields§
§schema: u32§app: AppInfo§created_utc: String§platform: Option<String>The OS the session was captured on — what a consumer needs to know
before re-attaching to the recorded window or coordinates:
macos, windows, linux-x11, or linux-wayland.
capture: Option<CaptureKind>See CaptureKind.
name: Option<String>A human-friendly session name (“microsoft teams”) for pickers and listings; the folder name identifies, this describes.
monitors: Vec<MonitorRecord>§target: Option<TargetRecord>Present when the session was captured with --target: the matched
window’s identity and bounds at freeze time.
selections: Vec<SelectionRecord>Implementations§
Source§impl SessionFile
impl SessionFile
Sourcepub fn build(
app_version: &str,
created_utc: String,
monitors: Vec<MonitorRecord>,
selections: &[Selection],
crops: &[String],
target: Option<TargetRecord>,
) -> Self
pub fn build( app_version: &str, created_utc: String, monitors: Vec<MonitorRecord>, selections: &[Selection], crops: &[String], target: Option<TargetRecord>, ) -> Self
Assemble a session. created_utc is supplied by the caller (this
crate has no clock); crops pairs 1:1 with selections.
Trait Implementations§
Source§impl Clone for SessionFile
impl Clone for SessionFile
Source§fn clone(&self) -> SessionFile
fn clone(&self) -> SessionFile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SessionFile
impl Debug for SessionFile
Source§impl<'de> Deserialize<'de> for SessionFile
impl<'de> Deserialize<'de> for SessionFile
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
Source§impl PartialEq for SessionFile
impl PartialEq for SessionFile
Source§impl Serialize for SessionFile
impl Serialize for SessionFile
impl StructuralPartialEq for SessionFile
Auto Trait Implementations§
impl Freeze for SessionFile
impl RefUnwindSafe for SessionFile
impl Send for SessionFile
impl Sync for SessionFile
impl Unpin for SessionFile
impl UnsafeUnpin for SessionFile
impl UnwindSafe for SessionFile
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