pub struct Part {
pub name: String,
pub doc: String,
pub accepts: Accepts,
pub many: bool,
pub default: bool,
pub when_open: bool,
}Expand description
Child content a component takes.
Fields§
§name: String§doc: String§accepts: AcceptsWhat may go in it.
many: boolWhether it holds any number of children (else at most one).
default: boolWhether it is what the component’s block fills when no part is named.
when_open: boolWhether it holds the document a row opens into: rendered only for the open row, so closed
rows cost none of it. A component with such a part says so (opens) where it is built, so a
row still offers to open.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Part
impl<'de> Deserialize<'de> for Part
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 Part
Auto Trait Implementations§
impl Forget for Part
impl Freeze for Part
impl Move for Part
impl RefUnwindSafe for Part
impl Send for Part
impl Sync for Part
impl Unpin for Part
impl UnsafeUnpin for Part
impl UnwindSafe for Part
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