pub struct Segment {
pub id: SegmentId,
pub title: String,
pub tags: Vec<String>,
pub text: String,
pub location: Location,
pub location_url: Option<String>,
pub is_included: bool,
pub last_modification: LastModificationInfo,
}Fields§
§id: SegmentIddocument-wide unique identifier
title: Stringtitle of this segment
tags of this segment
text: Stringcontent text of this segment - may be markdown formatted
location: Locationlocation of this segment
location_url: Option<String>whether the segment is already included in the output
is_included: boolurl of this location (e.g. in github, etc)
last_modification: LastModificationInfolast modification info, usually from git
Implementations§
Trait Implementations§
impl StructuralPartialEq for Segment
Auto Trait Implementations§
impl Freeze for Segment
impl RefUnwindSafe for Segment
impl Send for Segment
impl Sync for Segment
impl Unpin for Segment
impl UnwindSafe for Segment
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