pub struct CustomGrammarFormatParam {
pub definition: String,
pub syntax: GrammarSyntax,
}Fields§
§definition: StringThe grammar definition.
syntax: GrammarSyntaxThe syntax of the grammar definition. One of lark or regex.
Trait Implementations§
Source§impl Clone for CustomGrammarFormatParam
impl Clone for CustomGrammarFormatParam
Source§fn clone(&self) -> CustomGrammarFormatParam
fn clone(&self) -> CustomGrammarFormatParam
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CustomGrammarFormatParam
impl Debug for CustomGrammarFormatParam
Source§impl Default for CustomGrammarFormatParam
impl Default for CustomGrammarFormatParam
Source§fn default() -> CustomGrammarFormatParam
fn default() -> CustomGrammarFormatParam
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CustomGrammarFormatParam
impl<'de> Deserialize<'de> for CustomGrammarFormatParam
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CustomGrammarFormatParam, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CustomGrammarFormatParam, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CustomGrammarFormatParam
impl PartialEq for CustomGrammarFormatParam
Source§impl Serialize for CustomGrammarFormatParam
impl Serialize for CustomGrammarFormatParam
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for CustomGrammarFormatParam
Auto Trait Implementations§
impl Freeze for CustomGrammarFormatParam
impl RefUnwindSafe for CustomGrammarFormatParam
impl Send for CustomGrammarFormatParam
impl Sync for CustomGrammarFormatParam
impl Unpin for CustomGrammarFormatParam
impl UnsafeUnpin for CustomGrammarFormatParam
impl UnwindSafe for CustomGrammarFormatParam
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