[−][src]Struct exonum_configuration::VoteAgainst
VoteAgainst for the new configuration.
Notes
The stored version of the transaction has a special variant corresponding to absence
of a vote. See MaybeVote
for details.
See ErrorCode
for the description of error codes emitted by the execute()
method.
Fields
cfg_hash: Hash
Hash of the configuration that this vote is for.
See crate docs for more details on how the hash is calculated.
Methods
impl VoteAgainst
[src]
pub fn sign(
author: &PublicKey,
cfg_hash: &Hash,
key: &SecretKey
) -> Signed<RawTransaction>
[src]
author: &PublicKey,
cfg_hash: &Hash,
key: &SecretKey
) -> Signed<RawTransaction>
Create Signed
for VoteAgainst
transaction, signed by provided keys.
Trait Implementations
impl Clone for VoteAgainst
[src]
fn clone(&self) -> VoteAgainst
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl From<VoteAgainst> for ConfigurationTransactions
[src]
fn from(value: VoteAgainst) -> Self
[src]
impl From<VoteAgainst> for ServiceTransaction
[src]
fn from(value: VoteAgainst) -> Self
[src]
impl Debug for VoteAgainst
[src]
impl Serialize for VoteAgainst
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for VoteAgainst
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl BinaryValue for VoteAgainst
[src]
fn to_bytes(&self) -> Vec<u8>
[src]
fn from_bytes(value: Cow<[u8]>) -> Result<Self, Error>
[src]
fn into_bytes(self) -> Vec<u8>
[src]
Consumes and serializes the given value to the vector of bytes. This method is faster with the wrapped values, thus if you wouldn't use value after serialization use it. Read more
impl ObjectHash for VoteAgainst
[src]
fn object_hash(&self) -> Hash
[src]
impl CryptoHash for VoteAgainst
[src]
impl ProtobufConvert for VoteAgainst
[src]
type ProtoStruct = VoteAgainst
Type of the protobuf clone of Self
fn to_pb(&self) -> Self::ProtoStruct
[src]
fn from_pb(pb: Self::ProtoStruct) -> Result<Self, _FailureError>
[src]
impl Transaction for VoteAgainst
[src]
fn execute(&self, context: TransactionContext) -> ExecutionResult
[src]
Auto Trait Implementations
impl Sync for VoteAgainst
impl Send for VoteAgainst
impl Unpin for VoteAgainst
impl RefUnwindSafe for VoteAgainst
impl UnwindSafe for VoteAgainst
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> Erased for T
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]
T: Serialize + ?Sized,