pub struct FleetLayoutUpdate {
pub positions: HashMap<String, Value2>,
pub edges: Vec<FleetLayoutUpdateEdge>,
pub notes: Option<Vec<FleetLayoutUpdateNote>>,
pub drafts: Option<Vec<FleetLayoutUpdateDraft>>,
}Expand description
What a client SENDS when saving the canvas. The stored record additionally carries
updated_at, and the response may carry dropped — both are produced by the server, so
neither belongs in a request.
Fields§
§positions: HashMap<String, Value2>Agent id → its place on the canvas.
edges: Vec<FleetLayoutUpdateEdge>§notes: Option<Vec<FleetLayoutUpdateNote>>§drafts: Option<Vec<FleetLayoutUpdateDraft>>Trait Implementations§
Source§impl Clone for FleetLayoutUpdate
impl Clone for FleetLayoutUpdate
Source§fn clone(&self) -> FleetLayoutUpdate
fn clone(&self) -> FleetLayoutUpdate
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 FleetLayoutUpdate
impl Debug for FleetLayoutUpdate
Source§impl Default for FleetLayoutUpdate
impl Default for FleetLayoutUpdate
Source§fn default() -> FleetLayoutUpdate
fn default() -> FleetLayoutUpdate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FleetLayoutUpdate
impl<'de> Deserialize<'de> for FleetLayoutUpdate
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 FleetLayoutUpdate
impl PartialEq for FleetLayoutUpdate
Source§impl Serialize for FleetLayoutUpdate
impl Serialize for FleetLayoutUpdate
impl StructuralPartialEq for FleetLayoutUpdate
Auto Trait Implementations§
impl Freeze for FleetLayoutUpdate
impl RefUnwindSafe for FleetLayoutUpdate
impl Send for FleetLayoutUpdate
impl Sync for FleetLayoutUpdate
impl Unpin for FleetLayoutUpdate
impl UnsafeUnpin for FleetLayoutUpdate
impl UnwindSafe for FleetLayoutUpdate
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