pub struct RawComponent {
pub name: String,
pub properties: Vec<RawProperty>,
pub sub_components: Vec<RawComponent>,
}Expand description
A component (BEGIN:NAME ... END:NAME) that the typed model does not
understand, preserved verbatim for ADR-001 / ADR-018 round-trip.
Examples: VTIMEZONE at the calendar level, VALARM nested inside a
VEVENT. Nested unknown components are stored recursively in
sub_components.
Fields§
§name: StringComponent name, UPPERCASE-normalized (e.g. VTIMEZONE, VALARM).
properties: Vec<RawProperty>All properties of this component as RawProperty instances.
sub_components: Vec<RawComponent>Nested unknown sub-components (e.g. STANDARD / DAYLIGHT inside
a VTIMEZONE).
Trait Implementations§
Source§impl Clone for RawComponent
impl Clone for RawComponent
Source§fn clone(&self) -> RawComponent
fn clone(&self) -> RawComponent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RawComponent
impl Debug for RawComponent
Source§impl PartialEq for RawComponent
impl PartialEq for RawComponent
Source§fn eq(&self, other: &RawComponent) -> bool
fn eq(&self, other: &RawComponent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RawComponent
impl Serialize for RawComponent
impl Eq for RawComponent
impl StructuralPartialEq for RawComponent
Auto Trait Implementations§
impl Freeze for RawComponent
impl RefUnwindSafe for RawComponent
impl Send for RawComponent
impl Sync for RawComponent
impl Unpin for RawComponent
impl UnsafeUnpin for RawComponent
impl UnwindSafe for RawComponent
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