pub struct RoleExactBoundaryContract { /* private fields */ }Expand description
Architecture-selected role/schema contract embedded in a route manifest.
Implementations§
Source§impl RoleExactBoundaryContract
impl RoleExactBoundaryContract
Sourcepub fn new(
schema: impl Into<String>,
roles: impl IntoIterator<Item = BoundaryRoleContract>,
) -> Result<Self, CommunicationManifestError>
pub fn new( schema: impl Into<String>, roles: impl IntoIterator<Item = BoundaryRoleContract>, ) -> Result<Self, CommunicationManifestError>
Creates a non-empty ordered role contract.
Sourcepub fn roles(&self) -> &[BoundaryRoleContract]
pub fn roles(&self) -> &[BoundaryRoleContract]
Ordered primary then auxiliary role contracts.
Sourcepub fn validate_invocation(
&self,
actual_roles: &[BoundaryRoleContract],
) -> Result<(), CommunicationManifestError>
pub fn validate_invocation( &self, actual_roles: &[BoundaryRoleContract], ) -> Result<(), CommunicationManifestError>
Validates invocation-resolved roles without constructing or submitting payloads.
Sourcepub fn frame_values<T>(
&self,
route: CommunicationRouteId,
actual_roles: &[BoundaryRoleContract],
values: Vec<T>,
) -> Result<Vec<RoleExactBoundaryValue<T>>, CommunicationManifestError>
pub fn frame_values<T>( &self, route: CommunicationRouteId, actual_roles: &[BoundaryRoleContract], values: Vec<T>, ) -> Result<Vec<RoleExactBoundaryValue<T>>, CommunicationManifestError>
Builds canonical headers for an already locally validated tensor bundle.
Trait Implementations§
Source§impl Clone for RoleExactBoundaryContract
impl Clone for RoleExactBoundaryContract
Source§fn clone(&self) -> RoleExactBoundaryContract
fn clone(&self) -> RoleExactBoundaryContract
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 RoleExactBoundaryContract
impl Debug for RoleExactBoundaryContract
Source§impl<'de> Deserialize<'de> for RoleExactBoundaryContract
impl<'de> Deserialize<'de> for RoleExactBoundaryContract
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 RoleExactBoundaryContract
impl StructuralPartialEq for RoleExactBoundaryContract
Auto Trait Implementations§
impl Freeze for RoleExactBoundaryContract
impl RefUnwindSafe for RoleExactBoundaryContract
impl Send for RoleExactBoundaryContract
impl Sync for RoleExactBoundaryContract
impl Unpin for RoleExactBoundaryContract
impl UnsafeUnpin for RoleExactBoundaryContract
impl UnwindSafe for RoleExactBoundaryContract
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