pub struct ComponentSandbox {
pub component_input: ComponentInput,
pub component_output_dict: Dict,
pub program_input: ProgramInput,
pub program_output_dict: Dict,
pub framework_dict: Dict,
pub capability_sourced_capabilities_dict: Dict,
pub declared_dictionaries: Dict,
pub child_inputs: StructuredDictMap<ComponentInput>,
pub collection_inputs: StructuredDictMap<ComponentInput>,
}
Expand description
A component’s sandbox holds all the routing dictionaries that a component has once its been resolved.
Fields§
§component_input: ComponentInput
The dictionary containing all capabilities that a component’s parent provided to it.
component_output_dict: Dict
The dictionary containing all capabilities that a component makes available to its parent.
program_input: ProgramInput
The dictionary containing all capabilities that are available to a component’s program.
program_output_dict: Dict
The dictionary containing all capabilities that a component’s program can provide.
framework_dict: Dict
The dictionary containing all framework capabilities that are available to a component.
capability_sourced_capabilities_dict: Dict
The dictionary containing all capabilities that a component declares based on another capability. Currently this is only the storage admin protocol.
declared_dictionaries: Dict
The dictionary containing all dictionaries declared by this component.
child_inputs: StructuredDictMap<ComponentInput>
This set holds a component input dictionary for each child of a component. Each dictionary contains all capabilities the component has made available to a specific collection.
collection_inputs: StructuredDictMap<ComponentInput>
This set holds a component input dictionary for each collection declared by a component. Each dictionary contains all capabilities the component has made available to a specific collection.
Implementations§
Source§impl ComponentSandbox
impl ComponentSandbox
Sourcepub fn append(&self, sandbox: &ComponentSandbox)
pub fn append(&self, sandbox: &ComponentSandbox)
Copies all of the entries from the given sandbox into this one. Panics if the given sandbox is holding any entries that cannot be copied. Panics if there are any duplicate entries.
Trait Implementations§
Source§impl Clone for ComponentSandbox
impl Clone for ComponentSandbox
Source§fn clone(&self) -> ComponentSandbox
fn clone(&self) -> ComponentSandbox
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ComponentSandbox
impl Debug for ComponentSandbox
Source§impl Default for ComponentSandbox
impl Default for ComponentSandbox
Source§fn default() -> ComponentSandbox
fn default() -> ComponentSandbox
Auto Trait Implementations§
impl Freeze for ComponentSandbox
impl RefUnwindSafe for ComponentSandbox
impl Send for ComponentSandbox
impl Sync for ComponentSandbox
impl Unpin for ComponentSandbox
impl UnwindSafe for ComponentSandbox
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)