pub struct ApplicationIr {
pub version: &'static str,
pub contract_digest: String,
pub app_id: ContractId,
pub routes: BTreeMap<ContractId, RouteIr>,
pub route_buckets: BTreeMap<(String, usize), Vec<ContractId>>,
pub actions: BTreeMap<ContractId, ActionIr>,
pub entities: BTreeSet<ContractId>,
pub forms: BTreeSet<ContractId>,
pub policies: BTreeSet<ContractId>,
pub role_capability_edges: BTreeSet<(ContractId, ContractId)>,
pub workflows: BTreeSet<ContractId>,
pub integrations: BTreeSet<ContractId>,
}Expand description
Canonical in-memory application contract consumed by the runtime.
§Fields
version: Stored field onApplicationIr.contract_digest: Stored field onApplicationIr.app_id: Stored field onApplicationIr.routes: Stored field onApplicationIr.route_buckets: Stored field onApplicationIr.actions: Stored field onApplicationIr.entities: Stored field onApplicationIr.forms: Stored field onApplicationIr.policies: Stored field onApplicationIr.role_capability_edges: Stored field onApplicationIr.workflows: Stored field onApplicationIr.integrations: Stored field onApplicationIr.
§Examples
ⓘ
let _ = std::mem::size_of::<pharos_runtime_core::application_ir::ApplicationIr>();§Related
crate::application_irfor constructors, helpers, and neighboring runtime types.
Fields§
§version: &'static str§contract_digest: String§app_id: ContractId§routes: BTreeMap<ContractId, RouteIr>§route_buckets: BTreeMap<(String, usize), Vec<ContractId>>§actions: BTreeMap<ContractId, ActionIr>§entities: BTreeSet<ContractId>§forms: BTreeSet<ContractId>§policies: BTreeSet<ContractId>§role_capability_edges: BTreeSet<(ContractId, ContractId)>§workflows: BTreeSet<ContractId>§integrations: BTreeSet<ContractId>Trait Implementations§
Source§impl Clone for ApplicationIr
impl Clone for ApplicationIr
Source§fn clone(&self) -> ApplicationIr
fn clone(&self) -> ApplicationIr
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ApplicationIr
impl Debug for ApplicationIr
Source§impl PartialEq for ApplicationIr
impl PartialEq for ApplicationIr
Source§fn eq(&self, other: &ApplicationIr) -> bool
fn eq(&self, other: &ApplicationIr) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ApplicationIr
impl StructuralPartialEq for ApplicationIr
Auto Trait Implementations§
impl Freeze for ApplicationIr
impl RefUnwindSafe for ApplicationIr
impl Send for ApplicationIr
impl Sync for ApplicationIr
impl Unpin for ApplicationIr
impl UnsafeUnpin for ApplicationIr
impl UnwindSafe for ApplicationIr
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.