pub struct NativeReplayArtifact { /* private fields */ }Implementations§
Source§impl NativeReplayArtifact
impl NativeReplayArtifact
pub const MAX_PAYLOAD_BYTES: usize
pub fn new( adapter_id: SafeCode, selection_fingerprint: Sha256Digest, scope: NativeContextScope, payload: Value, ) -> Result<Self, NativeArtifactError>
pub const fn selection_fingerprint(&self) -> &Sha256Digest
pub const fn adapter_id(&self) -> &SafeCode
pub const fn scope(&self) -> &NativeContextScope
pub const fn payload(&self) -> &Value
pub fn validate_for( &self, resolved: &ResolvedModelRef, expected_scope: &NativeContextScope, ) -> Result<(), NativeArtifactError>
pub fn validate_resolved( &self, resolved: &ResolvedModelRef, ) -> Result<(), NativeArtifactError>
pub fn validate_for_binding( &self, binding: &FrozenModelBinding, expected_scope: &NativeContextScope, ) -> Result<(), NativeArtifactError>
Trait Implementations§
Source§impl Clone for NativeReplayArtifact
impl Clone for NativeReplayArtifact
Source§fn clone(&self) -> NativeReplayArtifact
fn clone(&self) -> NativeReplayArtifact
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 NativeReplayArtifact
impl Debug for NativeReplayArtifact
Source§impl<'de> Deserialize<'de> for NativeReplayArtifact
impl<'de> Deserialize<'de> for NativeReplayArtifact
Source§fn deserialize<D>(d: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for NativeReplayArtifact
impl JsonSchema for NativeReplayArtifact
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 NativeReplayArtifact
impl PartialEq for NativeReplayArtifact
Source§fn eq(&self, other: &NativeReplayArtifact) -> bool
fn eq(&self, other: &NativeReplayArtifact) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NativeReplayArtifact
impl Serialize for NativeReplayArtifact
impl StructuralPartialEq for NativeReplayArtifact
Auto Trait Implementations§
impl Freeze for NativeReplayArtifact
impl RefUnwindSafe for NativeReplayArtifact
impl Send for NativeReplayArtifact
impl Sync for NativeReplayArtifact
impl Unpin for NativeReplayArtifact
impl UnsafeUnpin for NativeReplayArtifact
impl UnwindSafe for NativeReplayArtifact
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