pub struct PickupOp<S> {
pub dst: S,
pub src: S,
pub what: String,
pub scale: Option<Num>,
pub offset: Option<Num>,
pub from: Option<String>,
}Expand description
ピックアップを置く: dst の量 = src の量 × scale + offset
Fields§
§dst: S値を写される面
src: S元の面
what: String量(c r t k p1〜 dn disp semi before0〜4 after0〜4)
scale: Option<Num>倍率(既定 1)
offset: Option<Num>足す値(既定 0)
from: Option<String>元の量(省くと what)
Implementations§
Trait Implementations§
Source§impl<'de, S> Deserialize<'de> for PickupOp<S>where
S: Deserialize<'de>,
impl<'de, S> Deserialize<'de> for PickupOp<S>where
S: Deserialize<'de>,
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<S> JsonSchema for PickupOp<S>where
S: JsonSchema,
impl<S> JsonSchema for PickupOp<S>where
S: JsonSchema,
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 moreimpl<S: PartialEq> StructuralPartialEq for PickupOp<S>
Auto Trait Implementations§
impl<S> Freeze for PickupOp<S>where
S: Freeze,
impl<S> RefUnwindSafe for PickupOp<S>where
S: RefUnwindSafe,
impl<S> Send for PickupOp<S>where
S: Send,
impl<S> Sync for PickupOp<S>where
S: Sync,
impl<S> Unpin for PickupOp<S>where
S: Unpin,
impl<S> UnsafeUnpin for PickupOp<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for PickupOp<S>where
S: UnwindSafe,
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