pub struct WeightMaterializerDescriptor { /* private fields */ }Expand description
Serializable capability identity for one trusted weight transformation.
The descriptor advertises availability, but cannot construct an execution
schema. Only the process-local WeightMaterializerRegistry retains the
implementation object that may produce a trusted plan.
Implementations§
Source§impl WeightMaterializerDescriptor
impl WeightMaterializerDescriptor
pub fn new( id: WeightMaterializerId, version: ContractVersion, implementation_fingerprint: impl Into<String>, fidelity: WeightMaterializationFidelity, required_capabilities: BTreeSet<CapabilityId>, ) -> Result<Self, VNextError>
pub fn id(&self) -> &WeightMaterializerId
pub const fn version(&self) -> ContractVersion
pub fn implementation_fingerprint(&self) -> &str
pub const fn fidelity(&self) -> WeightMaterializationFidelity
pub fn required_capabilities(&self) -> &BTreeSet<CapabilityId>
pub fn fingerprint(&self) -> Result<String, VNextError>
Trait Implementations§
Source§impl Clone for WeightMaterializerDescriptor
impl Clone for WeightMaterializerDescriptor
Source§fn clone(&self) -> WeightMaterializerDescriptor
fn clone(&self) -> WeightMaterializerDescriptor
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 WeightMaterializerDescriptor
impl Debug for WeightMaterializerDescriptor
Source§impl<'de> Deserialize<'de> for WeightMaterializerDescriptor
impl<'de> Deserialize<'de> for WeightMaterializerDescriptor
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 WeightMaterializerDescriptor
impl StructuralPartialEq for WeightMaterializerDescriptor
Auto Trait Implementations§
impl Freeze for WeightMaterializerDescriptor
impl RefUnwindSafe for WeightMaterializerDescriptor
impl Send for WeightMaterializerDescriptor
impl Sync for WeightMaterializerDescriptor
impl Unpin for WeightMaterializerDescriptor
impl UnsafeUnpin for WeightMaterializerDescriptor
impl UnwindSafe for WeightMaterializerDescriptor
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