pub struct PlaceArgs {
pub width: Option<Value>,
pub height: Option<Value>,
pub spot: Option<String>,
pub x: Option<f64>,
pub y: Option<f64>,
}Expand description
The size and place an agent gives a floating pane (docs/specs/SPEC_AGENT_PANE_PLACEMENT_FLOATING_2026_11_22.md §2.1). Sent as given: srv checks them and says what is wrong.
Fields§
§width: Option<Value>CSS pixels (a number) or a share of the work area ("60%").
height: Option<Value>§spot: Option<String>center, right, left, top, bottom, top-right, top-left, bottom-right, bottom-left.
x: Option<f64>§y: Option<f64>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PlaceArgs
impl<'de> Deserialize<'de> for PlaceArgs
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 PlaceArgs
impl RefUnwindSafe for PlaceArgs
impl Send for PlaceArgs
impl Sync for PlaceArgs
impl Unpin for PlaceArgs
impl UnsafeUnpin for PlaceArgs
impl UnwindSafe for PlaceArgs
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