pub struct ComponentRequirements {
pub component_id: String,
pub contract_name: String,
pub contract_hash: [u8; 32],
pub feature_set_hash: Option<[u8; 32]>,
}Expand description
What a loaded component’s descriptor must match.
contract_name identifies which of a component’s provides entries this
is for; contract_hash is that specific contract’s hash, not the
component-wide legacy ComponentIdentity::contract_hash. A component that
provides several contracts is loaded once per contract, each through its
own entry point (see crate::ComponentManager::ensure_contract), so each
load only ever validates one contract’s requirements.
Fields§
§component_id: String§contract_name: String§contract_hash: [u8; 32]§feature_set_hash: Option<[u8; 32]>Trait Implementations§
Source§impl Clone for ComponentRequirements
impl Clone for ComponentRequirements
Auto Trait Implementations§
impl Freeze for ComponentRequirements
impl RefUnwindSafe for ComponentRequirements
impl Send for ComponentRequirements
impl Sync for ComponentRequirements
impl Unpin for ComponentRequirements
impl UnsafeUnpin for ComponentRequirements
impl UnwindSafe for ComponentRequirements
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