Struct tea_sdk::tapp::machine::ActiveMinerInfo
pub struct ActiveMinerInfo {
pub token_id: String,
pub cml_id: u64,
pub tea_id: String,
pub mining_status: String,
pub ip: String,
pub owner: String,
pub plantd_at: u64,
pub node_status: String,
pub cid: String,
pub sell_price: String,
pub total_supply: String,
}
Expand description
Base structure for active miner.
Fields§
§token_id: String
§cml_id: u64
§tea_id: String
§mining_status: String
§ip: String
§owner: String
§plantd_at: u64
§node_status: String
§cid: String
§sell_price: String
§total_supply: String
Trait Implementations§
§impl Clone for ActiveMinerInfo
impl Clone for ActiveMinerInfo
§fn clone(&self) -> ActiveMinerInfo
fn clone(&self) -> ActiveMinerInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for ActiveMinerInfo
impl Debug for ActiveMinerInfo
§impl<'de> Deserialize<'de> for ActiveMinerInfo
impl<'de> Deserialize<'de> for ActiveMinerInfo
§fn deserialize<__D>(
__deserializer: __D
) -> Result<ActiveMinerInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<ActiveMinerInfo, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for ActiveMinerInfo
impl Serialize for ActiveMinerInfo
§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
Auto Trait Implementations§
impl RefUnwindSafe for ActiveMinerInfo
impl Send for ActiveMinerInfo
impl Sync for ActiveMinerInfo
impl Unpin for ActiveMinerInfo
impl UnwindSafe for ActiveMinerInfo
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