pub struct Component {
pub key: String,
pub name: String,
pub description: String,
pub component_set_id: Option<String>,
pub documentation_links: Vec<DocumentationLink>,
pub remote: bool,
}
Expand description
Component : A description of a main component. Helps you identify which component instances are attached to.
Fields§
§key: String
The key of the component
name: String
Name of the component
description: String
The description of the component as entered in the editor
component_set_id: Option<String>
The ID of the component set if the component belongs to one
documentation_links: Vec<DocumentationLink>
An array of documentation links attached to this component
remote: bool
Whether this component is a remote component that doesn’t live in this file
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Component
impl<'de> Deserialize<'de> for Component
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
impl StructuralPartialEq for Component
Auto Trait Implementations§
impl Freeze for Component
impl RefUnwindSafe for Component
impl Send for Component
impl Sync for Component
impl Unpin for Component
impl UnwindSafe for Component
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