pub struct InterfaceEntry {
pub iface: String,
pub contract: String,
pub minor: Option<u64>,
pub standby: bool,
pub token: bool,
pub unavailable: Vec<Unavailable>,
pub cardinality: BTreeMap<String, u64>,
}Expand description
One implemented interface.
Fields§
§iface: String<name>.v<major>.
contract: StringThe contract’s fingerprint, sha256: + 64 lowercase hex digits.
minor: Option<u64>The minor of the contract revision the entry names, as its authoring
file states it (§3.3). An owner that holds only the revision’s bundle,
which keeps no minor (§9.5), leaves it out, never writing one its
revision does not have; a checker reads it as optional, and
null is D000.
standby: boolWhether the instance stands by on this interface (§3.3, §6, 0.39):
it lists it, and serves none of it now. Written only when true;
absent is serving.
token: boolWhether the instance holds this interface’s token. false for an
interface in the deployment’s tokenless set (U22, spec §8.1).
Optional resources that are absent here although no missing capability implies it. Written only when one is listed: absent is none.
cardinality: BTreeMap<String, u64>A lower population bound for this instance, per templated resource,
keyed <kind token>/<template>. Written only when one is stated:
absent is none.
Trait Implementations§
Source§impl Clone for InterfaceEntry
impl Clone for InterfaceEntry
Source§impl Debug for InterfaceEntry
impl Debug for InterfaceEntry
Source§impl<'de> Deserialize<'de> for InterfaceEntry
impl<'de> Deserialize<'de> for InterfaceEntry
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>,
Source§impl JsonSchema for InterfaceEntry
impl JsonSchema for InterfaceEntry
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for InterfaceEntry
impl PartialEq for InterfaceEntry
Source§impl Serialize for InterfaceEntry
impl Serialize for InterfaceEntry
impl StructuralPartialEq for InterfaceEntry
Auto Trait Implementations§
impl Forget for InterfaceEntry
impl Freeze for InterfaceEntrywhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Unavailable>: Freeze,
*const LeafNode<String, u64> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, u64)>>: Freeze,
impl Move for InterfaceEntry
impl RefUnwindSafe for InterfaceEntry
impl Send for InterfaceEntry
impl Sync for InterfaceEntry
impl Unpin for InterfaceEntry
impl UnsafeUnpin for InterfaceEntrywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Unavailable>: UnsafeUnpin,
*const LeafNode<String, u64> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, u64)>>: UnsafeUnpin,
impl UnwindSafe for InterfaceEntry
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
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> ⓘ
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> ⓘ
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