pub struct TimelineEvent {
pub title: String,
pub description: String,
pub timestamp: String,
pub icon: String,
pub color: String,
}Fields§
§title: String§description: String§timestamp: String§icon: String§color: StringImplementations§
Source§impl TimelineEvent
impl TimelineEvent
pub fn new(title: String, timestamp: String) -> TimelineEvent
pub fn description(self, desc: String) -> TimelineEvent
pub fn icon(self, icon: String) -> TimelineEvent
pub fn color(self, color: String) -> TimelineEvent
Trait Implementations§
Source§impl Clone for TimelineEvent
impl Clone for TimelineEvent
Source§fn clone(&self) -> TimelineEvent
fn clone(&self) -> TimelineEvent
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 TimelineEvent
impl Debug for TimelineEvent
Source§impl Default for TimelineEvent
impl Default for TimelineEvent
Source§fn default() -> TimelineEvent
fn default() -> TimelineEvent
Returns the “default value” for a type. Read more
Source§impl Hash for TimelineEvent
impl Hash for TimelineEvent
Source§impl PartialEq for TimelineEvent
impl PartialEq for TimelineEvent
impl Eq for TimelineEvent
impl StructuralPartialEq for TimelineEvent
Auto Trait Implementations§
impl Freeze for TimelineEvent
impl RefUnwindSafe for TimelineEvent
impl Send for TimelineEvent
impl Sync for TimelineEvent
impl Unpin for TimelineEvent
impl UnwindSafe for TimelineEvent
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