pub struct CreateSurface {
pub surface_id: String,
pub catalog_id: String,
pub theme: Option<Value>,
pub send_data_model: Option<bool>,
}Expand description
Payload of a createSurface message.
Fields§
§surface_id: StringGlobally unique surface identifier, for the renderer’s lifetime.
catalog_id: StringOpaque identifier of the component catalog this surface speaks.
Fixed for the life of the surface: changing it means deleting and recreating the surface.
theme: Option<Value>Catalog-defined theme parameters (primaryColor, iconUrl, …).
send_data_model: Option<bool>Ask the renderer to echo this surface’s whole data model back with every message it sends to the creating agent.
Trait Implementations§
Source§impl Clone for CreateSurface
impl Clone for CreateSurface
Source§fn clone(&self) -> CreateSurface
fn clone(&self) -> CreateSurface
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 CreateSurface
impl Debug for CreateSurface
Source§impl<'de> Deserialize<'de> for CreateSurface
impl<'de> Deserialize<'de> for CreateSurface
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 CreateSurface
impl PartialEq for CreateSurface
Source§fn eq(&self, other: &CreateSurface) -> bool
fn eq(&self, other: &CreateSurface) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CreateSurface
impl Serialize for CreateSurface
impl StructuralPartialEq for CreateSurface
Auto Trait Implementations§
impl Freeze for CreateSurface
impl RefUnwindSafe for CreateSurface
impl Send for CreateSurface
impl Sync for CreateSurface
impl Unpin for CreateSurface
impl UnsafeUnpin for CreateSurface
impl UnwindSafe for CreateSurface
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