pub struct SchemasSection {
pub protobuf: Vec<String>,
pub proto_include: Option<Vec<String>>,
pub jsonschema: Vec<String>,
pub packed: Vec<String>,
}Expand description
[schemas].
Fields§
§protobuf: Vec<String>.proto files, relative to the contract’s directory. proto2/proto3.
proto_include: Option<Vec<String>>Include roots for protobuf imports, relative to the contract’s
directory. Default: ["proto"] when that directory exists, else ["."].
jsonschema: Vec<String>JSON Schema 2020-12 files (the zk2 subset), definitions under $defs.
packed: Vec<String>Packed files (core §7.6, draft 3): strict JSON, types under types,
referenced as packed:<Name> or packed:<stem>#<Name>.
Trait Implementations§
Source§impl Clone for SchemasSection
impl Clone for SchemasSection
Source§impl Debug for SchemasSection
impl Debug for SchemasSection
Source§impl Default for SchemasSection
impl Default for SchemasSection
Source§impl<'de> Deserialize<'de> for SchemasSection
impl<'de> Deserialize<'de> for SchemasSection
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 SchemasSection
impl JsonSchema for SchemasSection
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 SchemasSection
impl Freeze for SchemasSection
impl Move for SchemasSection
impl RefUnwindSafe for SchemasSection
impl Send for SchemasSectionwhere
RawVecInner: Send,
impl Sync for SchemasSectionwhere
RawVecInner: Sync,
impl Unpin for SchemasSection
impl UnsafeUnpin for SchemasSection
impl UnwindSafe for SchemasSectionwhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more