pub struct TimelineCreateOptions {
pub date: Option<String>,
pub tags: Option<Vec<String>>,
pub index: Option<i32>,
pub title: Option<String>,
pub label: Option<String>,
pub lane: Option<String>,
pub milestone: Option<bool>,
pub start: Option<BTreeMap<String, i64>>,
pub end: Option<BTreeMap<String, i64>>,
pub references: Option<Vec<i32>>,
pub timeline: Option<String>,
}Expand description
The optional inputs of create; leave any out with ..Default::default().
Fields§
§date: Option<String>Deprecated alias of label; label wins when both are given.
index: Option<i32>Its position in the timeline; left out, the end. A dated timeline takes none.
title: Option<String>Its own title; left out, the content’s first line is shown.
label: Option<String>Free-text “when” a manual timeline shows, such as “Day 3” or “Spring, 1802”.
lane: Option<String>The lane it runs in.
milestone: Option<bool>A turning point, marked across every lane.
start: Option<BTreeMap<String, i64>>When it starts on the timeline’s calendar, such as {“year”: 97, “day”: 210}; required on a dated timeline.
end: Option<BTreeMap<String, i64>>When it ends, in the same form as start; needs a start.
references: Option<Vec<i32>>Scene and entry ids it refers to.
timeline: Option<String>The timeline’s id, from timeline.settings.read; left out, or “main”, the main timeline.
Trait Implementations§
Source§impl Clone for TimelineCreateOptions
impl Clone for TimelineCreateOptions
Source§impl Debug for TimelineCreateOptions
impl Debug for TimelineCreateOptions
Source§impl Default for TimelineCreateOptions
impl Default for TimelineCreateOptions
Source§impl PartialEq for TimelineCreateOptions
impl PartialEq for TimelineCreateOptions
Source§impl Serialize for TimelineCreateOptions
impl Serialize for TimelineCreateOptions
impl StructuralPartialEq for TimelineCreateOptions
Auto Trait Implementations§
impl Forget for TimelineCreateOptions
impl Freeze for TimelineCreateOptions
impl Move for TimelineCreateOptions
impl RefUnwindSafe for TimelineCreateOptions
impl Send for TimelineCreateOptions
impl Sync for TimelineCreateOptions
impl Unpin for TimelineCreateOptions
impl UnsafeUnpin for TimelineCreateOptions
impl UnwindSafe for TimelineCreateOptions
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