pub struct StockChoice {Show 14 fields
pub film: String,
pub paper: String,
pub filters: String,
pub heat_glass: Option<String>,
pub dev_time: Option<f64>,
pub temp: Option<f64>,
pub spectral: bool,
pub lut_size: usize,
pub dictionary: Vec<PathBuf>,
pub lut: Option<PathBuf>,
pub allow_model_mismatch: bool,
pub camera: Option<String>,
pub spectral_print: bool,
pub spectral_scan: bool,
}Expand description
The stock and camera choices a job is made from, before they are resolved.
The CLI fills this from its flags and the app from its own state; neither
shape leaks into the model. A .kalofilm file is not here — it is read by
the caller that has one and passed as the film of a job, so this crate needs
no file format of its own.
Fields§
§film: StringFilm stock id (see kalo stocks).
paper: StringPaper stock id.
filters: StringThe enlarger’s colour pack, in Kodak CC units: 30M, 20Y+10M.
heat_glass: Option<String>A heat-absorbing glass in the light path, by name.
dev_time: Option<f64>Development time in minutes; the stock’s reference time when absent.
temp: Option<f64>Developer temperature in degrees Celsius; the stock’s when absent.
spectral: boolExpose through the spectral path.
lut_size: usizeTable side per axis for a baked exposure, or 0.
dictionary: Vec<PathBuf>Reflectance CSVs for the dictionary prior.
lut: Option<PathBuf>A table baked by kalo bake.
allow_model_mismatch: boolLoad a table even if its recorded model differs from this build’s.
camera: Option<String>Which sensor the input is assumed to have come from.
spectral_print: boolPrint through spectral dye absorption and paper layer sensitivities.
spectral_scan: boolScan through spectral reflectance, illuminant and observer.
Trait Implementations§
Source§impl Clone for StockChoice
impl Clone for StockChoice
Source§impl Debug for StockChoice
impl Debug for StockChoice
Auto Trait Implementations§
impl Forget for StockChoice
impl Freeze for StockChoice
impl Move for StockChoice
impl RefUnwindSafe for StockChoice
impl Send for StockChoice
impl Sync for StockChoice
impl Unpin for StockChoice
impl UnsafeUnpin for StockChoice
impl UnwindSafe for StockChoice
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
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> ⓘ
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