pub struct NodeInvocationBindings(/* private fields */);Expand description
Canonically ordered, duplicate-free, bounded external invocation bindings.
Implementations§
Source§impl NodeInvocationBindings
impl NodeInvocationBindings
Sourcepub fn try_new<I>(
activation: &NodeActivation,
values: I,
) -> Result<Self, NodeInvocationBindingsError>where
I: IntoIterator<Item = NodeInvocationBinding>,
pub fn try_new<I>(
activation: &NodeActivation,
values: I,
) -> Result<Self, NodeInvocationBindingsError>where
I: IntoIterator<Item = NodeInvocationBinding>,
Validates activation ownership, uniqueness, and the hard count ceiling.
Values are serialized in canonical (kind, invocation_id) order.
§Errors
Returns NodeInvocationBindingsError for a crossed activation,
duplicate logical invocation, or more than Self::MAX_LEN entries.
Sourcepub fn iter(&self) -> impl ExactSizeIterator<Item = &NodeInvocationBinding>
pub fn iter(&self) -> impl ExactSizeIterator<Item = &NodeInvocationBinding>
Iterates bindings in canonical identity order.
Trait Implementations§
Source§impl Clone for NodeInvocationBindings
impl Clone for NodeInvocationBindings
Source§impl Debug for NodeInvocationBindings
impl Debug for NodeInvocationBindings
Source§impl Default for NodeInvocationBindings
impl Default for NodeInvocationBindings
Source§impl<'de> Deserialize<'de> for NodeInvocationBindings
impl<'de> Deserialize<'de> for NodeInvocationBindings
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 NodeInvocationBindings
Source§impl JsonSchema for NodeInvocationBindings
impl JsonSchema for NodeInvocationBindings
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for NodeInvocationBindings
impl PartialEq for NodeInvocationBindings
Source§impl Serialize for NodeInvocationBindings
impl Serialize for NodeInvocationBindings
impl StructuralPartialEq for NodeInvocationBindings
Auto Trait Implementations§
impl Forget for NodeInvocationBindings
impl Freeze for NodeInvocationBindings
impl Move for NodeInvocationBindings
impl RefUnwindSafe for NodeInvocationBindings
impl Send for NodeInvocationBindings
impl Sync for NodeInvocationBindings
impl Unpin for NodeInvocationBindings
impl UnsafeUnpin for NodeInvocationBindings
impl UnwindSafe for NodeInvocationBindings
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