pub struct InfoboxPart {
pub name: Option<String>,
pub part_type: InfoboxPartType,
pub value: Option<String>,
pub values: Option<Vec<String>>,
pub has_parts: Option<Vec<InfoboxPart>>,
pub links: Option<Vec<Link>>,
pub images: Option<Vec<Image>>,
}Expand description
Part of an infobox.
Infobox parts can be nested to create hierarchical data structures. For example, a taxobox might have sections for classification and characteristics.
Fields§
§name: Option<String>Part name
part_type: InfoboxPartTypePart type
value: Option<String>Single value (for field types)
values: Option<Vec<String>>Multiple values (for list type)
has_parts: Option<Vec<InfoboxPart>>Nested parts
links: Option<Vec<Link>>Links
images: Option<Vec<Image>>Images
Trait Implementations§
Source§impl Clone for InfoboxPart
impl Clone for InfoboxPart
Source§fn clone(&self) -> InfoboxPart
fn clone(&self) -> InfoboxPart
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 InfoboxPart
impl Debug for InfoboxPart
Source§impl<'de> Deserialize<'de> for InfoboxPart
impl<'de> Deserialize<'de> for InfoboxPart
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 InfoboxPart
impl PartialEq for InfoboxPart
Source§impl Serialize for InfoboxPart
impl Serialize for InfoboxPart
impl StructuralPartialEq for InfoboxPart
Auto Trait Implementations§
impl Freeze for InfoboxPart
impl RefUnwindSafe for InfoboxPart
impl Send for InfoboxPart
impl Sync for InfoboxPart
impl Unpin for InfoboxPart
impl UnsafeUnpin for InfoboxPart
impl UnwindSafe for InfoboxPart
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