pub struct InvocationScope {
pub scope_id: String,
pub parent_scope_id: Option<String>,
pub remaining_budget_nanos: String,
pub permissions: Vec<String>,
pub extensions: Vec<InvocationExtension>,
}Expand description
Invocation ancestry and ambient values that outbound calls must preserve.
Fields§
§scope_id: String§parent_scope_id: Option<String>§remaining_budget_nanos: String§permissions: Vec<String>§extensions: Vec<InvocationExtension>Implementations§
Source§impl InvocationScope
impl InvocationScope
pub fn validate(&self) -> Result<(), ProtocolError>
Sourcepub fn validate_child_of(&self, parent: &Self) -> Result<(), ProtocolError>
pub fn validate_child_of(&self, parent: &Self) -> Result<(), ProtocolError>
Validates an outbound child scope against its parent invocation.
Trait Implementations§
Source§impl Clone for InvocationScope
impl Clone for InvocationScope
Source§fn clone(&self) -> InvocationScope
fn clone(&self) -> InvocationScope
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 InvocationScope
impl Debug for InvocationScope
Source§impl<'de> Deserialize<'de> for InvocationScope
impl<'de> Deserialize<'de> for InvocationScope
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
Source§impl PartialEq for InvocationScope
impl PartialEq for InvocationScope
Source§impl Serialize for InvocationScope
impl Serialize for InvocationScope
impl StructuralPartialEq for InvocationScope
Auto Trait Implementations§
impl Freeze for InvocationScope
impl RefUnwindSafe for InvocationScope
impl Send for InvocationScope
impl Sync for InvocationScope
impl Unpin for InvocationScope
impl UnsafeUnpin for InvocationScope
impl UnwindSafe for InvocationScope
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