pub struct CatalogFillReq {
pub catalog: String,
pub out: String,
pub item: String,
pub thickness: Option<f64>,
pub diameter: Option<Value>,
pub frame: Option<MechSpec>,
pub from: String,
pub frame_reversed: bool,
pub spec: Option<Value>,
pub glass_visible: bool,
}Expand description
catalog_fill の params: カタログ catalog の未完の品 item に thickness・diameter(数か [幅, 高さ]、mm)を
足して、補足のカタログ out(ユーザーカタログ。無ければ作る)に同じ型番・同じメーカーの普通の品として書く。
from は値の決め方(page・step・manual)。枠付きの品は frame(機構部品の寸法、z は枠の端から)で枠も
書ける(frame_reversed なら光は枠の z の大きい端から入る)。spec は仕様表の値(食い違う寸法は notes に)、
glass_visible は枠の穴からガラスが見えるか。元のカタログは書き換えない。out をレンズカタログのフォルダに
置けば、次の一覧では未完の品の代わりに並ぶ
Fields§
§catalog: String§out: String§item: String§thickness: Option<f64>§diameter: Option<Value>数か [幅, 高さ]
frame: Option<MechSpec>§from: String§frame_reversed: bool§spec: Option<Value>§glass_visible: boolTrait Implementations§
Source§impl Clone for CatalogFillReq
impl Clone for CatalogFillReq
Source§impl Debug for CatalogFillReq
impl Debug for CatalogFillReq
Source§impl Default for CatalogFillReq
impl Default for CatalogFillReq
Source§impl<'de> Deserialize<'de> for CatalogFillReq
impl<'de> Deserialize<'de> for CatalogFillReq
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 PartialEq for CatalogFillReq
impl PartialEq for CatalogFillReq
Source§impl Serialize for CatalogFillReq
impl Serialize for CatalogFillReq
impl StructuralPartialEq for CatalogFillReq
Auto Trait Implementations§
impl Freeze for CatalogFillReq
impl RefUnwindSafe for CatalogFillReq
impl Send for CatalogFillReq
impl Sync for CatalogFillReq
impl Unpin for CatalogFillReq
impl UnsafeUnpin for CatalogFillReq
impl UnwindSafe for CatalogFillReq
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