pub struct CptyId {
pub kind: EcoString,
pub instance: Option<EcoString>,
}Expand description
Most of the time there’s only one instance of a component, in which case the component kind uniquely identifies it. If there are multiple, you may specify an instance name to distinguish them.
Fields§
§kind: EcoString§instance: Option<EcoString>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CptyId
impl<'de> Deserialize<'de> for CptyId
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 Ord for CptyId
impl Ord for CptyId
Source§impl PartialOrd for CptyId
impl PartialOrd for CptyId
impl Eq for CptyId
impl StructuralPartialEq for CptyId
Auto Trait Implementations§
impl Freeze for CptyId
impl RefUnwindSafe for CptyId
impl Send for CptyId
impl Sync for CptyId
impl Unpin for CptyId
impl UnwindSafe for CptyId
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