Enum mainnet_lib::network::wallet_state::template::actor::Actor
source · pub enum Actor {
ExternalDelegator {
name: String,
address: String,
},
GeneratedDelegator {
name: String,
registration: Registration,
ada: u64,
},
ExternalRep {
name: String,
voting_key: String,
},
GeneratedRep {
name: String,
ada: u64,
},
}
Expand description
Actor represent input definition of mainnet wallet from registration angle
Variants§
ExternalDelegator
Delegator with just an address. Can be used for already existing wallet in the network
GeneratedDelegator
Generated delegator will setup new mainnet wallet
ExternalRep
Representative with just and voting key. Can be used for already exsiting wallet
GeneratedRep
This variant will create new unique wallet with given ada amount
Trait Implementations§
source§impl<'de> Deserialize<'de> for Actor
impl<'de> Deserialize<'de> for Actor
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<Actor> for Actor
impl PartialEq<Actor> for Actor
source§impl TryFrom<DelegatorBuilder> for Actor
impl TryFrom<DelegatorBuilder> for Actor
source§impl TryFrom<RepresentativeBuilder> for Actor
impl TryFrom<RepresentativeBuilder> for Actor
impl Eq for Actor
impl StructuralEq for Actor
impl StructuralPartialEq for Actor
Auto Trait Implementations§
impl RefUnwindSafe for Actor
impl Send for Actor
impl Sync for Actor
impl Unpin for Actor
impl UnwindSafe for Actor
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request