pub struct ExternalContextBundle { /* private fields */ }Expand description
Immutable bounded context handed to a council invocation.
Implementations§
Source§impl ExternalContextBundle
impl ExternalContextBundle
pub fn new( bundle_id: impl Into<String>, schema_version: impl Into<String>, summary: Option<ContextSummary>, items: Vec<ContextItem>, references: Vec<ContextReference>, metadata: Attributes, ) -> Result<Self, DomainError>
pub fn bundle_id(&self) -> &str
pub fn schema_version(&self) -> &str
pub fn summary(&self) -> Option<&ContextSummary>
pub fn items(&self) -> &[ContextItem]
pub fn references(&self) -> &[ContextReference]
pub fn metadata(&self) -> &Attributes
Trait Implementations§
Source§impl Clone for ExternalContextBundle
impl Clone for ExternalContextBundle
Source§fn clone(&self) -> ExternalContextBundle
fn clone(&self) -> ExternalContextBundle
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 ExternalContextBundle
impl Debug for ExternalContextBundle
Source§impl<'de> Deserialize<'de> for ExternalContextBundle
impl<'de> Deserialize<'de> for ExternalContextBundle
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
impl Eq for ExternalContextBundle
Source§impl PartialEq for ExternalContextBundle
impl PartialEq for ExternalContextBundle
Source§impl Serialize for ExternalContextBundle
impl Serialize for ExternalContextBundle
impl StructuralPartialEq for ExternalContextBundle
Auto Trait Implementations§
impl Freeze for ExternalContextBundle
impl RefUnwindSafe for ExternalContextBundle
impl Send for ExternalContextBundle
impl Sync for ExternalContextBundle
impl Unpin for ExternalContextBundle
impl UnsafeUnpin for ExternalContextBundle
impl UnwindSafe for ExternalContextBundle
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