pub struct JsonCommandSpec {
pub commands: HashMap<String, CommandSpecItem>,
}
Expand description
Command specification that contains a set of commands and environments. It
is used for us to define the meta data of LaTeX packages in typst code and
query by typst query
then. See Spec
for an example.
Note: There are non-canonical format of items could be used for convenience.
Fields§
§commands: HashMap<String, CommandSpecItem>
The command specifications.
Trait Implementations§
Source§impl Clone for CommandSpecRepr
impl Clone for CommandSpecRepr
Source§fn clone(&self) -> CommandSpecRepr
fn clone(&self) -> CommandSpecRepr
Returns a copy of the value. Read more
1.0.0 · 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 CommandSpecRepr
impl Debug for CommandSpecRepr
Source§impl Default for CommandSpecRepr
impl Default for CommandSpecRepr
Source§fn default() -> CommandSpecRepr
fn default() -> CommandSpecRepr
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CommandSpecRepr
impl<'de> Deserialize<'de> for CommandSpecRepr
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CommandSpecRepr, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CommandSpecRepr, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<CommandSpecRepr> for CommandSpec
impl From<CommandSpecRepr> for CommandSpec
Source§fn from(repr: CommandSpecRepr) -> CommandSpec
fn from(repr: CommandSpecRepr) -> CommandSpec
Converts to this type from the input type.
Source§impl From<CommandSpecRepr> for CommandSpecRepr
impl From<CommandSpecRepr> for CommandSpecRepr
Source§fn from(repr: CommandSpecRepr) -> CommandSpecRepr
fn from(repr: CommandSpecRepr) -> CommandSpecRepr
Converts to this type from the input type.
Source§impl Serialize for CommandSpecRepr
impl Serialize for CommandSpecRepr
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
Auto Trait Implementations§
impl Freeze for CommandSpecRepr
impl RefUnwindSafe for CommandSpecRepr
impl Send for CommandSpecRepr
impl Sync for CommandSpecRepr
impl Unpin for CommandSpecRepr
impl UnwindSafe for CommandSpecRepr
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.