pub struct ContractFile {
pub interface: InterfaceSection,
pub defaults: Option<DefaultsSection>,
pub schemas: SchemasSection,
pub resources: BTreeMap<String, ResourceSpec>,
pub requires: BTreeMap<String, Requirement>,
}Expand description
One contract file: one interface major.
Fields§
§interface: InterfaceSection§defaults: Option<DefaultsSection>§schemas: SchemasSection§resources: BTreeMap<String, ResourceSpec>§requires: BTreeMap<String, Requirement>Trait Implementations§
Source§impl Clone for ContractFile
impl Clone for ContractFile
Source§impl Debug for ContractFile
impl Debug for ContractFile
Source§impl<'de> Deserialize<'de> for ContractFile
impl<'de> Deserialize<'de> for ContractFile
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 ContractFile
impl JsonSchema for ContractFile
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 ContractFile
impl Freeze for ContractFilewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
*const LeafNode<String, ResourceSpec> is !null: Freeze,
PhantomData<Box<(String, ResourceSpec)>>: Freeze,
*const LeafNode<String, Requirement> is !null: Freeze,
PhantomData<Box<(String, Requirement)>>: Freeze,
impl Move for ContractFile
impl RefUnwindSafe for ContractFile
impl Send for ContractFilewhere
RawVecInner: Send,
NodeRef<Owned, String, Value, LeafOrInternal>: Send,
BoxRaw<(String, Value)>: Send,
NodeRef<Owned, String, ResourceSpec, LeafOrInternal>: Send,
BoxRaw<(String, ResourceSpec)>: Send,
NodeRef<Owned, String, Requirement, LeafOrInternal>: Send,
BoxRaw<(String, Requirement)>: Send,
impl Sync for ContractFilewhere
RawVecInner: Sync,
NodeRef<Owned, String, Value, LeafOrInternal>: Sync,
BoxRaw<(String, Value)>: Sync,
NodeRef<Owned, String, ResourceSpec, LeafOrInternal>: Sync,
BoxRaw<(String, ResourceSpec)>: Sync,
NodeRef<Owned, String, Requirement, LeafOrInternal>: Sync,
BoxRaw<(String, Requirement)>: Sync,
impl Unpin for ContractFile
impl UnsafeUnpin for ContractFilewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
*const LeafNode<String, ResourceSpec> is !null: UnsafeUnpin,
PhantomData<Box<(String, ResourceSpec)>>: UnsafeUnpin,
*const LeafNode<String, Requirement> is !null: UnsafeUnpin,
PhantomData<Box<(String, Requirement)>>: UnsafeUnpin,
impl UnwindSafe for ContractFilewhere
RawVecInner: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
BTreeMap<String, ResourceSpec>: UnwindSafe,
BTreeMap<String, Requirement>: 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