pub struct TimelineEdit { /* private fields */ }Expand description
Represents the information needed for creating and updating a timeline
This is the datastructure used to backup & restore timelines
Implementations§
Source§impl TimelineEdit
impl TimelineEdit
Sourcepub fn from(
id: Option<OpenTimelineId>,
name: Name,
bool_expr: Option<BoolTagExpr>,
entities: Option<ReducedEntities>,
subtimelines: Option<ReducedTimelines>,
tags: Option<Tags>,
) -> Result<TimelineEdit, ()>
pub fn from( id: Option<OpenTimelineId>, name: Name, bool_expr: Option<BoolTagExpr>, entities: Option<ReducedEntities>, subtimelines: Option<ReducedTimelines>, tags: Option<Tags>, ) -> Result<TimelineEdit, ()>
Create a new TimelineEdit
Sourcepub fn bool_expr(&self) -> &Option<BoolTagExpr>
pub fn bool_expr(&self) -> &Option<BoolTagExpr>
Borrow the timeline’s boolean tag expr
Sourcepub fn clear_bool_expr(&mut self)
pub fn clear_bool_expr(&mut self)
Clear the timeline’s boolean tag expr
Sourcepub fn entities(&self) -> &Option<ReducedEntities>
pub fn entities(&self) -> &Option<ReducedEntities>
Borrow the timeline’s entities
Sourcepub fn clear_entities(&mut self)
pub fn clear_entities(&mut self)
Clear the timeline’s entities
Sourcepub fn subtimelines(&self) -> &Option<ReducedTimelines>
pub fn subtimelines(&self) -> &Option<ReducedTimelines>
Borrow the timeline’s subtimelines
Sourcepub fn clear_subtimelines(&mut self)
pub fn clear_subtimelines(&mut self)
Clear the timeline’s subtimelines
Borrow the timeline’s Tags
Mutably borrow the timeline’s Tags
Sourcepub fn remove_tag(&mut self, tag: &Tag)
pub fn remove_tag(&mut self, tag: &Tag)
Remove a tag from the timeline
Set the timeline’s Tags
Clear the timeline’s Tags and set to None
Trait Implementations§
Source§impl Clone for TimelineEdit
impl Clone for TimelineEdit
Source§fn clone(&self) -> TimelineEdit
fn clone(&self) -> TimelineEdit
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 TimelineEdit
impl Debug for TimelineEdit
Source§impl<'de> Deserialize<'de> for TimelineEdit
impl<'de> Deserialize<'de> for TimelineEdit
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 HasIdAndName for TimelineEdit
impl HasIdAndName for TimelineEdit
Source§fn id(&self) -> Option<OpenTimelineId>
fn id(&self) -> Option<OpenTimelineId>
Get the ID
Source§fn set_id(&mut self, id: OpenTimelineId)
fn set_id(&mut self, id: OpenTimelineId)
Set the ID - the
OpenTimelineId passed in must have been
initialised, and therefore is guaranteed to be validSource§impl Hash for TimelineEdit
impl Hash for TimelineEdit
Source§impl Ord for TimelineEdit
impl Ord for TimelineEdit
Source§fn cmp(&self, other: &TimelineEdit) -> Ordering
fn cmp(&self, other: &TimelineEdit) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TimelineEdit
impl PartialEq for TimelineEdit
Source§impl PartialOrd for TimelineEdit
impl PartialOrd for TimelineEdit
Source§impl Serialize for TimelineEdit
impl Serialize for TimelineEdit
impl Eq for TimelineEdit
impl StructuralPartialEq for TimelineEdit
Auto Trait Implementations§
impl Freeze for TimelineEdit
impl RefUnwindSafe for TimelineEdit
impl Send for TimelineEdit
impl Sync for TimelineEdit
impl Unpin for TimelineEdit
impl UnsafeUnpin for TimelineEdit
impl UnwindSafe for TimelineEdit
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