pub struct VariableSurfaceDescriptor {
pub key: String,
pub label: String,
pub variables: Vec<VariableDescriptor>,
}Expand description
Variables available from one domain surface.
Fields§
§key: String§label: String§variables: Vec<VariableDescriptor>Implementations§
Source§impl VariableSurfaceDescriptor
impl VariableSurfaceDescriptor
pub fn new(key: impl Into<String>, label: impl Into<String>) -> Self
pub fn with_variable(self, variable: VariableDescriptor) -> Self
Trait Implementations§
Source§impl Clone for VariableSurfaceDescriptor
impl Clone for VariableSurfaceDescriptor
Source§fn clone(&self) -> VariableSurfaceDescriptor
fn clone(&self) -> VariableSurfaceDescriptor
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 VariableSurfaceDescriptor
impl Debug for VariableSurfaceDescriptor
Source§impl<'de> Deserialize<'de> for VariableSurfaceDescriptor
impl<'de> Deserialize<'de> for VariableSurfaceDescriptor
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 VariableSurfaceDescriptor
impl PartialEq for VariableSurfaceDescriptor
Source§fn eq(&self, other: &VariableSurfaceDescriptor) -> bool
fn eq(&self, other: &VariableSurfaceDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VariableSurfaceDescriptor
Auto Trait Implementations§
impl Freeze for VariableSurfaceDescriptor
impl RefUnwindSafe for VariableSurfaceDescriptor
impl Send for VariableSurfaceDescriptor
impl Sync for VariableSurfaceDescriptor
impl Unpin for VariableSurfaceDescriptor
impl UnsafeUnpin for VariableSurfaceDescriptor
impl UnwindSafe for VariableSurfaceDescriptor
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