pub struct EnergySpec {
pub field: FieldRef,
pub wave: Option<usize>,
pub method: Option<String>,
pub airy: Option<bool>,
pub shape: Option<String>,
pub center: Option<String>,
pub size_at: Option<f64>,
pub fraction_at: Option<f64>,
pub n: Option<usize>,
pub target: Option<f64>,
}Expand description
energy の項(包囲エネルギー)
Fields§
§field: FieldRef§wave: Option<usize>波長の番号。null・省略は重みのある全波長
method: Option<String>光量の分布: geometric(既定、瞳の格子の光線)・fft(FFT の回折 PSF)・huygens(Huygens PSF)
airy: Option<bool>geometric の円で、円の割合にエアリー像の円の割合をかけるか(既定 false)
shape: Option<String>形: circle(既定、半径)・x・y(帯の半幅)・square(正方形の半幅)
center: Option<String>中心: chief(既定、主波長の主光線)・centroid(光量の重心)・vertex(像面の原点)・middle(点の広がりの中心)
size_at: Option<f64>値にする大きさの光量の割合(0〜1)。fraction_at と片方だけ
fraction_at: Option<f64>値にする割合の形の大きさ [レンズ単位]。size_at と片方だけ
n: Option<usize>瞳の格子(geometric は既定 256、fft・huygens は自動)
target: Option<f64>目標(target・min・max のどれかが要る)
Trait Implementations§
Source§impl Clone for EnergySpec
impl Clone for EnergySpec
Source§impl Debug for EnergySpec
impl Debug for EnergySpec
Source§impl<'de> Deserialize<'de> for EnergySpec
impl<'de> Deserialize<'de> for EnergySpec
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 JsonSchema for EnergySpec
impl JsonSchema for EnergySpec
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for EnergySpec
impl RefUnwindSafe for EnergySpec
impl Send for EnergySpec
impl Sync for EnergySpec
impl Unpin for EnergySpec
impl UnsafeUnpin for EnergySpec
impl UnwindSafe for EnergySpec
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
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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