pub struct ComponentProperty {
pub type: ComponentPropertyType,
pub value: Box<ComponentPropertyValue>,
pub preferred_values: Option<Vec<InstanceSwapPreferredValue>>,
pub bound_variables: Option<Box<ComponentPropertyBoundVariables>>,
}
Expand description
ComponentProperty : A property of a component.
Fields§
§type: ComponentPropertyType
Type of this component property.
value: Box<ComponentPropertyValue>
§preferred_values: Option<Vec<InstanceSwapPreferredValue>>
Preferred values for this property. Only applicable if type is INSTANCE_SWAP
.
bound_variables: Option<Box<ComponentPropertyBoundVariables>>
Implementations§
Source§impl ComponentProperty
impl ComponentProperty
Sourcepub fn new(
type: ComponentPropertyType,
value: ComponentPropertyValue,
) -> ComponentProperty
pub fn new( type: ComponentPropertyType, value: ComponentPropertyValue, ) -> ComponentProperty
A property of a component.
Trait Implementations§
Source§impl Clone for ComponentProperty
impl Clone for ComponentProperty
Source§fn clone(&self) -> ComponentProperty
fn clone(&self) -> ComponentProperty
Returns a duplicate of the value. Read more
1.0.0 · 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 ComponentProperty
impl Debug for ComponentProperty
Source§impl Default for ComponentProperty
impl Default for ComponentProperty
Source§fn default() -> ComponentProperty
fn default() -> ComponentProperty
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ComponentProperty
impl<'de> Deserialize<'de> for ComponentProperty
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 ComponentProperty
impl PartialEq for ComponentProperty
Source§impl Serialize for ComponentProperty
impl Serialize for ComponentProperty
impl StructuralPartialEq for ComponentProperty
Auto Trait Implementations§
impl Freeze for ComponentProperty
impl RefUnwindSafe for ComponentProperty
impl Send for ComponentProperty
impl Sync for ComponentProperty
impl Unpin for ComponentProperty
impl UnwindSafe for ComponentProperty
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