Struct fuels_core::code_gen::bindings::ContractBindings
source · [−]pub struct ContractBindings {
pub tokens: TokenStream,
pub rustfmt: bool,
}Expand description
Type-safe contract bindings generated by a Builder. This type can be
either written to file or into a token stream for use in a procedural macro.
Fields
tokens: TokenStreamThe TokenStream representing the contract bindings.
rustfmt: boolThe output options used for serialization.
Implementations
Writes the bindings to a given Write.
Writes the bindings to the specified file.
Converts the bindings into its underlying token stream. This allows it to be used within a procedural macro.