pub struct RequireEntry {
pub role: String,
pub interface: String,
pub declared_by: Option<String>,
pub bindings: Vec<String>,
pub params: BTreeMap<String, String>,
pub optional: bool,
}Expand description
One requirement and its bindings.
Fields§
§role: StringThe role’s name, [a-z][a-z0-9_]*.
interface: StringThe required interface, <name>.v<major>.
declared_by: Option<String>The interface whose contract declares the role, or null when the
component’s own manifest does.
bindings: Vec<String>Service addresses, <system>/<service>; either chunk may be *.
params: BTreeMap<String, String>Template parameters bound by the binding (R2): parameter name →
self.system, self.service, or a value. Written only when one is
bound: absent is none.
optional: boolWhether the role is optional: the instance works without a provider
(§3.2, 0.10). Written only when true; absent is required. A role a
contract declares is optional as that contract says; one the
component’s manifest declares, as the manifest says.
Trait Implementations§
Source§impl Clone for RequireEntry
impl Clone for RequireEntry
Source§impl Debug for RequireEntry
impl Debug for RequireEntry
Source§impl<'de> Deserialize<'de> for RequireEntry
impl<'de> Deserialize<'de> for RequireEntry
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 RequireEntry
impl JsonSchema for RequireEntry
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 moreSource§impl PartialEq for RequireEntry
impl PartialEq for RequireEntry
Source§impl Serialize for RequireEntry
impl Serialize for RequireEntry
impl StructuralPartialEq for RequireEntry
Auto Trait Implementations§
impl Forget for RequireEntry
impl Freeze for RequireEntrywhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
*const LeafNode<String, String> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, String)>>: Freeze,
impl Move for RequireEntry
impl RefUnwindSafe for RequireEntry
impl Send for RequireEntry
impl Sync for RequireEntry
impl Unpin for RequireEntry
impl UnsafeUnpin for RequireEntrywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
impl UnwindSafe for RequireEntry
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