pub struct Engines {
pub modelith: String,
}Expand description
プラグインが動く本体の版の範囲(本体の ADR-0023 §5)。
本体の公開の系列(安定版・リリース候補版・プレビュー版)が同時に動くので、新しい本体の機能に頼るプラグインは、 動く版の範囲をここに書く。範囲の外の本体は、プラグインを動かさずに利用者に知らせる。
Fields§
§modelith: StringModelith の版の範囲。比べる記号と版をカンマで区切って並べる(Cargo の版の指定と同じ書き方。例: ">=0.1.0, <0.3.0"・"^0.2"・"0.2.x"・"*")。
桁を x・X・* にすると、その桁から後ろを書かなかったのと同じ。版に付けたプレリリースとビルドの印(-beta.1・+b5)は比べるときに外す。
本体も、自分の版からプレリリースの印を外して比べる(0.2.0-beta.1 の本体は 0.2.0 として扱う)。
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Engines
impl<'de> Deserialize<'de> for Engines
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
impl Eq for Engines
impl StructuralPartialEq for Engines
Auto Trait Implementations§
impl Forget for Engines
impl Freeze for Engines
impl Move for Engines
impl RefUnwindSafe for Engines
impl Send for Engines
impl Sync for Engines
impl Unpin for Engines
impl UnsafeUnpin for Engines
impl UnwindSafe for Engines
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