pub struct NativeContextWindow { /* private fields */ }Implementations§
Source§impl NativeContextWindow
impl NativeContextWindow
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_for_binding( &self, binding: &FrozenModelBinding, expected_scope: &NativeContextScope, ) -> Result<(), NativeArtifactError>
Trait Implementations§
Source§impl Clone for NativeContextWindow
impl Clone for NativeContextWindow
Source§fn clone(&self) -> NativeContextWindow
fn clone(&self) -> NativeContextWindow
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 NativeContextWindow
impl Debug for NativeContextWindow
Source§impl<'de> Deserialize<'de> for NativeContextWindow
impl<'de> Deserialize<'de> for NativeContextWindow
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
impl Eq for NativeContextWindow
Source§impl JsonSchema for NativeContextWindow
impl JsonSchema for NativeContextWindow
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 NativeContextWindow
impl PartialEq for NativeContextWindow
Source§fn eq(&self, other: &NativeContextWindow) -> bool
fn eq(&self, other: &NativeContextWindow) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NativeContextWindow
impl Serialize for NativeContextWindow
impl StructuralPartialEq for NativeContextWindow
Auto Trait Implementations§
impl Freeze for NativeContextWindow
impl RefUnwindSafe for NativeContextWindow
impl Send for NativeContextWindow
impl Sync for NativeContextWindow
impl Unpin for NativeContextWindow
impl UnsafeUnpin for NativeContextWindow
impl UnwindSafe for NativeContextWindow
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