pub struct LayoutActionData {Show 13 fields
pub actiontype: String,
pub actionid: String,
pub blockid: String,
pub nodesize: Option<u32>,
pub nodesizefraction: Option<f64>,
pub indexarr: Option<Vec<i32>>,
pub focused: bool,
pub magnified: bool,
pub ephemeral: bool,
pub targetblockid: String,
pub position: String,
pub nodeid: Option<String>,
pub queuedat: Option<i64>,
}Fields§
§actiontype: String§actionid: String§blockid: String§nodesize: Option<u32>§nodesizefraction: Option<f64>Split-only: the new node’s desired size as a fraction (0.0-1.0) of the
TARGET node’s current size, e.g. 0.5 for a 50/50 inner-direction drop,
0.2 for an outer-direction drop (matches the ghost’s leaf/5 band).
The frontend applies this against the target’s live size at split
time (layoutTree.ts:splitHorizontal/splitVertical), which the
backend cannot see. Takes precedence over nodesize when present.
indexarr: Option<Vec<i32>>§focused: bool§magnified: bool§ephemeral: bool§targetblockid: String§position: String§nodeid: Option<String>The node id srv gave the leaf it placed (insert and split), so the frontend’s mirror of the action builds the same tree.
queuedat: Option<i64>When srv put the action on a layout row’s queue (ms since the epoch). Stamped at the queue, not by the writers; an action without one was queued by an older srv.
Trait Implementations§
Source§impl Clone for LayoutActionData
impl Clone for LayoutActionData
Source§fn clone(&self) -> LayoutActionData
fn clone(&self) -> LayoutActionData
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 LayoutActionData
impl Debug for LayoutActionData
Source§impl Default for LayoutActionData
impl Default for LayoutActionData
Source§fn default() -> LayoutActionData
fn default() -> LayoutActionData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LayoutActionData
impl<'de> Deserialize<'de> for LayoutActionData
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 LayoutActionData
impl PartialEq for LayoutActionData
Source§impl Serialize for LayoutActionData
impl Serialize for LayoutActionData
impl StructuralPartialEq for LayoutActionData
Auto Trait Implementations§
impl Freeze for LayoutActionData
impl RefUnwindSafe for LayoutActionData
impl Send for LayoutActionData
impl Sync for LayoutActionData
impl Unpin for LayoutActionData
impl UnsafeUnpin for LayoutActionData
impl UnwindSafe for LayoutActionData
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.