pub struct Project {Show 16 fields
pub version: i64,
pub name: String,
pub config: SpeakerConfig,
pub dsp: DspProfile,
pub target: TargetCurve,
pub curtain: (f64, f64),
pub xo: Vec<(String, f64)>,
pub bc: PyJson,
pub mso: PyJson,
pub measurements: PyJson,
pub verify: PyJson,
pub tesira: PyJson,
pub snapshots: PyJson,
pub extra: Vec<(String, PyJson)>,
pub measurement_calibration: BTreeMap<(i64, String), u64>,
pub loaded: Vec<(String, PyJson)>,
}Fields§
§version: i64§name: String§config: SpeakerConfig§dsp: DspProfile§target: TargetCurve§curtain: (f64, f64)§xo: Vec<(String, f64)>§bc: PyJson§mso: PyJson§measurements: PyJson§verify: PyJson§tesira: PyJson§snapshots: PyJson§extra: Vec<(String, PyJson)>§measurement_calibration: BTreeMap<(i64, String), u64>Fingerprints of calibration attached to recorded measurements, keyed by position and role. This runtime index is rebuilt from source sidecars and is never written to the project file (ADR 0015).
loaded: Vec<(String, PyJson)>The config, dsp, target and calibration values as the file
held them (after migration). Saving rebuilds those from the typed
fields and crate::store_calibration, then keeps the keys this
version does not know from these (ADR 0004, docs/DEVIATIONS.md F16).
Empty for a project that was not read from a file.
Implementations§
Source§impl Project
impl Project
pub fn from_preset(name: &str) -> Result<Self, ProjectError>
pub fn from_json(value: PyJson) -> Result<Self, ProjectError>
pub fn to_json(&self) -> PyJson
pub fn load_text(text: &str) -> Result<Self, ProjectError>
pub fn save_text(&self) -> String
pub fn bass_path_count(&self) -> usize
pub fn apply_recommended_taps(&mut self) -> bool
pub fn validate(&self) -> Vec<String>
Trait Implementations§
impl StructuralPartialEq for Project
Auto Trait Implementations§
impl Freeze for Project
impl RefUnwindSafe for Project
impl Send for Project
impl Sync for Project
impl Unpin for Project
impl UnsafeUnpin for Project
impl UnwindSafe for Project
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