pub struct FormatArgs {
pub mml: String,
pub dialect: Option<String>,
pub includes: Option<BTreeMap<String, String>>,
pub width: Option<u32>,
pub normalize: Option<bool>,
}Expand description
format_mml の入力。
Fields§
§mml: String整形する MML の全文。
dialect: Option<String>既定の方言(pikopiko / classic / classic-reversed)。省略すると pikopiko(厳密)。
includes: Option<BTreeMap<String, String>>#include "名前" で読ませる共有の定義(名前 → MML の本文)。
width: Option<u32>折り返す幅(文字数、0〜1000)。0 で折り返さない。省略すると 100。
normalize: Option<bool>true で省略記法(mp・ep・en など)を @vib・@detune・@arp の形に書き換える。省略すると false。
Trait Implementations§
Source§impl Debug for FormatArgs
impl Debug for FormatArgs
Source§impl<'de> Deserialize<'de> for FormatArgs
impl<'de> Deserialize<'de> for FormatArgs
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 FormatArgs
impl JsonSchema for FormatArgs
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 FormatArgs
impl Freeze for FormatArgs
impl Move for FormatArgs
impl RefUnwindSafe for FormatArgs
impl Send for FormatArgs
impl Sync for FormatArgs
impl Unpin for FormatArgs
impl UnsafeUnpin for FormatArgs
impl UnwindSafe for FormatArgs
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