pub struct CornellNote {
pub version: String,
pub metadata: Metadata,
pub sections: Vec<Section>,
pub summary: Summary,
}Expand description
Complete Cornell Note document
Fields§
§version: String§metadata: Metadata§sections: Vec<Section>§summary: SummaryImplementations§
Source§impl CornellNote
impl CornellNote
Sourcepub fn add_section(&mut self, section: Section)
pub fn add_section(&mut self, section: Section)
Add a new section to the note
Sourcepub fn update_summary(&mut self, content: Content)
pub fn update_summary(&mut self, content: Content)
Update the summary
Trait Implementations§
Source§impl Clone for CornellNote
impl Clone for CornellNote
Source§fn clone(&self) -> CornellNote
fn clone(&self) -> CornellNote
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 CornellNote
impl Debug for CornellNote
Source§impl<'de> Deserialize<'de> for CornellNote
impl<'de> Deserialize<'de> for CornellNote
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 CornellNote
impl PartialEq for CornellNote
Source§impl Serialize for CornellNote
impl Serialize for CornellNote
impl StructuralPartialEq for CornellNote
Auto Trait Implementations§
impl Freeze for CornellNote
impl RefUnwindSafe for CornellNote
impl Send for CornellNote
impl Sync for CornellNote
impl Unpin for CornellNote
impl UnwindSafe for CornellNote
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