mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-24 00:01:03 +00:00
14 lines
282 B
Rust
14 lines
282 B
Rust
use yazi_shared::event::CmdCow;
|
|
|
|
#[derive(Default)]
|
|
pub struct CloseOpt {
|
|
pub submit: bool,
|
|
}
|
|
|
|
impl From<CmdCow> for CloseOpt {
|
|
fn from(c: CmdCow) -> Self { Self { submit: c.bool("submit") } }
|
|
}
|
|
|
|
impl From<bool> for CloseOpt {
|
|
fn from(submit: bool) -> Self { Self { submit } }
|
|
}
|