pub struct ProjectFile {
pub metadata: ProjectMetadata,
pub settings: ProjectSettings,
pub states: ProjectStates,
pub slots: Vec<ProjectSampleSlot>,
}Expand description
A parsed representation of an Octatrack Project file (project.work or project.strd).
Fields§
§metadata: ProjectMetadataMetadata key-value pairs from a Project file.
settings: ProjectSettingsSettings key-value pairs from a Project file.
states: ProjectStatesStates key-value pairs from a Project file.
slots: Vec<ProjectSampleSlot>Slots key-value pairs from a Project file.
Implementations§
Source§impl ProjectFile
impl ProjectFile
pub fn update_sample_slot_id( &mut self, old_slot_id: &u8, new_slot_id: &u8, sample_type: Option<ProjectSampleSlotType>, ) -> Result<(), Box<dyn Error>>
Trait Implementations§
Source§impl Clone for ProjectFile
impl Clone for ProjectFile
Source§fn clone(&self) -> ProjectFile
fn clone(&self) -> ProjectFile
Returns a copy 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 ProjectFile
impl Debug for ProjectFile
Source§impl Default for ProjectFile
impl Default for ProjectFile
Source§impl<'de> Deserialize<'de> for ProjectFile
impl<'de> Deserialize<'de> for ProjectFile
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 IsDefault for ProjectFile
impl IsDefault for ProjectFile
fn is_default(&self) -> bool
Source§impl PartialEq for ProjectFile
impl PartialEq for ProjectFile
Source§impl Serialize for ProjectFile
impl Serialize for ProjectFile
impl StructuralPartialEq for ProjectFile
Auto Trait Implementations§
impl Freeze for ProjectFile
impl RefUnwindSafe for ProjectFile
impl Send for ProjectFile
impl Sync for ProjectFile
impl Unpin for ProjectFile
impl UnwindSafe for ProjectFile
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more