pub struct InterfaceSection {
pub name: String,
pub major: u32,
pub minor: Option<u32>,
pub summary: Option<String>,
pub uses: Vec<String>,
}Expand description
[interface].
Fields§
§name: String[a-z][a-z0-9_]* segments joined by .; never ending in .v<int>.
major: u32§minor: Option<u32>Informative; CI keeps it monotonic; not in the fingerprint.
summary: Option<String>Documentation; not in the fingerprint.
uses: Vec<String>Profiles whose annotations the contract uses (freshness.v1, …).
Trait Implementations§
Source§impl Clone for InterfaceSection
impl Clone for InterfaceSection
Source§impl Debug for InterfaceSection
impl Debug for InterfaceSection
Source§impl<'de> Deserialize<'de> for InterfaceSection
impl<'de> Deserialize<'de> for InterfaceSection
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 InterfaceSection
impl JsonSchema for InterfaceSection
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 InterfaceSection
impl Freeze for InterfaceSection
impl Move for InterfaceSection
impl RefUnwindSafe for InterfaceSection
impl Send for InterfaceSectionwhere
RawVecInner: Send,
impl Sync for InterfaceSectionwhere
RawVecInner: Sync,
impl Unpin for InterfaceSection
impl UnsafeUnpin for InterfaceSectionwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for InterfaceSectionwhere
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