pub enum MiningRewardType {
DataSharing {
dataset_id: String,
bytes_shared: u64,
},
ComputeProvision {
job_id: String,
compute_units: u64,
},
ModelHosting {
model_id: String,
hosting_hours: f64,
},
ModelRegistration {
model_hash: String,
model_type: String,
},
InferenceServing {
model_id: String,
tokens_served: u64,
},
}Expand description
How AI coins are earned in the protocol
Variants§
DataSharing
Rewards for sharing training data
ComputeProvision
Rewards for providing GPU/CPU compute
ModelHosting
Rewards for keeping models loaded/hosted
ModelRegistration
Rewards for specific model/embedding registration
InferenceServing
Rewards for inference serving
Trait Implementations§
Source§impl Clone for MiningRewardType
impl Clone for MiningRewardType
Source§fn clone(&self) -> MiningRewardType
fn clone(&self) -> MiningRewardType
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 MiningRewardType
impl Debug for MiningRewardType
Source§impl<'de> Deserialize<'de> for MiningRewardType
impl<'de> Deserialize<'de> for MiningRewardType
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
Source§impl PartialEq for MiningRewardType
impl PartialEq for MiningRewardType
Source§fn eq(&self, other: &MiningRewardType) -> bool
fn eq(&self, other: &MiningRewardType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MiningRewardType
impl Serialize for MiningRewardType
impl StructuralPartialEq for MiningRewardType
Auto Trait Implementations§
impl Freeze for MiningRewardType
impl RefUnwindSafe for MiningRewardType
impl Send for MiningRewardType
impl Sync for MiningRewardType
impl Unpin for MiningRewardType
impl UnsafeUnpin for MiningRewardType
impl UnwindSafe for MiningRewardType
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