pub struct BuildArgs {
pub mml: String,
pub dialect: Option<String>,
pub include_hex: Option<bool>,
pub inline: Option<String>,
pub includes: Option<BTreeMap<String, String>>,
}Expand description
build_mml の入力。
Fields§
§mml: String変換する MML の全文。
dialect: Option<String>既定の方言。省略すると pikopiko。
include_hex: Option<bool>true なら、バイナリを16進数の文字列でも返す(inline: "hex" と同じ。inline があればそちらが優先)。
inline: Option<String>バイナリを文字列でも返す書き方:hex・base64・rust(pub static SONG: [u8; N]。ゲームの
ソースに貼る用)。バイナリが大きすぎるとき(既定で 32 KiB 超)は返さず、理由を添える。
includes: Option<BTreeMap<String, String>>#include "名前" で読ませる共有の定義(名前 → MML の本文)。サーバーはファイルを読まないので、
読ませたいものはここに渡す。渡していない名前を #include すると E0601。
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BuildArgs
impl<'de> Deserialize<'de> for BuildArgs
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 BuildArgs
impl JsonSchema for BuildArgs
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 Forget for BuildArgs
impl Freeze for BuildArgs
impl Move for BuildArgs
impl RefUnwindSafe for BuildArgs
impl Send for BuildArgs
impl Sync for BuildArgs
impl Unpin for BuildArgs
impl UnsafeUnpin for BuildArgs
impl UnwindSafe for BuildArgs
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