#[non_exhaustive]pub struct CreateSurface {
pub surface_id: String,
pub catalog_id: Option<String>,
pub send_data_model: Option<bool>,
pub components: Option<Vec<Component>>,
pub data_model: Option<Map<String, Value>>,
pub metadata: Option<Value>,
}Expand description
createSurface.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.surface_id: StringUnique for the renderer’s lifetime.
catalog_id: Option<String>The surface’s default catalog.
send_data_model: Option<bool>Whether the renderer sends the data model back with each message.
components: Option<Vec<Component>>Components to start with.
data_model: Option<Map<String, Value>>The initial data model, applied before the components.
metadata: Option<Value>Surface metadata (extensions).
Trait Implementations§
Source§impl Clone for CreateSurface
impl Clone for CreateSurface
Source§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§impl Serialize for CreateSurface
impl Serialize for CreateSurface
impl StructuralPartialEq for CreateSurface
Auto Trait Implementations§
impl Forget for CreateSurface
impl Freeze for CreateSurface
impl Move 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