pub struct Model {
pub model_id: Hash32,
pub owner: Address,
pub version: u32,
pub shard_root: Hash32,
pub shard_count: u32,
pub state: ModelState,
pub pricing_policy: PricingPolicy,
pub revenue_split: RevenueSplit,
pub vault_enabled: bool,
}Fields§
§model_id: Hash32§owner: Address§version: u32§shard_root: Hash32§shard_count: u32§state: ModelState§pricing_policy: PricingPolicy§revenue_split: RevenueSplit§vault_enabled: boolTrait Implementations§
Source§impl<'de> Deserialize<'de> for Model
impl<'de> Deserialize<'de> for Model
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
Auto Trait Implementations§
impl Freeze for Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnsafeUnpin for Model
impl UnwindSafe for Model
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