pub struct NativePredictorDescriptorV1 {
pub descriptor_type: String,
pub schema_version: u32,
pub artifact_sha256: String,
pub owner_controller: ControllerId,
pub format: String,
pub format_version: u32,
pub writer_abi: NativePredictorWriterAbiV1,
pub storage_algorithm: i32,
pub capabilities: u64,
pub dimensions: NativePredictorDimensionsV1,
pub pipeline: Option<NativePredictorPipelineV1>,
pub descriptor_fingerprint: String,
}Expand description
Content-bound descriptor for a predictor owned by a native controller.
This contract deliberately records Methods’ numeric algorithm and
capability mask without translating them into host claims. For N4MM, the
values are produced only from n4m’s model/pipeline serialization
inspectors and the descriptor fingerprint is TCV1 over every field except
itself.
Fields§
§descriptor_type: String§schema_version: u32§artifact_sha256: String§owner_controller: ControllerId§format: String§format_version: u32§writer_abi: NativePredictorWriterAbiV1§storage_algorithm: i32§capabilities: u64§dimensions: NativePredictorDimensionsV1§pipeline: Option<NativePredictorPipelineV1>§descriptor_fingerprint: StringImplementations§
Source§impl NativePredictorDescriptorV1
impl NativePredictorDescriptorV1
pub fn compute_fingerprint(&self) -> Result<String, DagMlError>
pub fn validate(&self) -> Result<(), DagMlError>
Trait Implementations§
Source§impl Clone for NativePredictorDescriptorV1
impl Clone for NativePredictorDescriptorV1
Source§fn clone(&self) -> NativePredictorDescriptorV1
fn clone(&self) -> NativePredictorDescriptorV1
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 NativePredictorDescriptorV1
impl Debug for NativePredictorDescriptorV1
Source§impl<'de> Deserialize<'de> for NativePredictorDescriptorV1
impl<'de> Deserialize<'de> for NativePredictorDescriptorV1
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NativePredictorDescriptorV1, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NativePredictorDescriptorV1, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for NativePredictorDescriptorV1
Source§impl Serialize for NativePredictorDescriptorV1
impl Serialize for NativePredictorDescriptorV1
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for NativePredictorDescriptorV1
Auto Trait Implementations§
impl Freeze for NativePredictorDescriptorV1
impl RefUnwindSafe for NativePredictorDescriptorV1
impl Send for NativePredictorDescriptorV1
impl Sync for NativePredictorDescriptorV1
impl Unpin for NativePredictorDescriptorV1
impl UnsafeUnpin for NativePredictorDescriptorV1
impl UnwindSafe for NativePredictorDescriptorV1
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.