Enum dubp_block::DubpBlock [−][src]
Wrap a Block document.
Must be created by parsing a text document or using a builder.
Variants
V10(DubpBlockV10)
Trait Implementations
impl Clone for DubpBlock
[src]
impl Debug for DubpBlock
[src]
impl<'de> Deserialize<'de> for DubpBlock
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl DubpBlockTrait for DubpBlock
[src]
type Signator = SignatorEnum
fn compute_hash(&self) -> BlockHash
[src]
fn compute_hashed_string(&self) -> String
[src]
fn compute_signed_string(&self) -> String
[src]
fn current_frame_size(&self) -> usize
[src]
fn dividend(&self) -> Option<SourceAmount>
[src]
fn generate_compact_inner_text(&self) -> String
[src]
fn hash(&self) -> BlockHash
[src]
fn inner_hash(&self) -> Hash
[src]
fn issuers_count(&self) -> usize
[src]
fn issuers_frame(&self) -> usize
[src]
fn local_time(&self) -> u64
[src]
fn members_count(&self) -> usize
[src]
fn monetary_mass(&self) -> u64
[src]
fn common_time(&self) -> u64
[src]
fn nonce(&self) -> u64
[src]
fn number(&self) -> BlockNumber
[src]
fn pow_min(&self) -> usize
[src]
fn previous_blockstamp(&self) -> Blockstamp
[src]
fn previous_hash(&self) -> Hash
[src]
fn reduce(&mut self)
[src]
fn verify_inner_hash(&self) -> Result<(), VerifyBlockHashError>
[src]
fn verify_signature(&self) -> Result<(), SigError>
[src]
fn verify_hash(&self) -> Result<(), VerifyBlockHashError>
[src]
fn unit_base(&self) -> usize
[src]
fn issuer(&self) -> PubKeyEnum
[src]
fn sign(&mut self, signator: &Self::Signator) -> Result<(), SignError>
[src]
fn signature(&self) -> Sig
[src]
fn compute_inner_hash(&self) -> Hash
[src]
impl PartialEq<DubpBlock> for DubpBlock
[src]
impl Serialize for DubpBlock
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for DubpBlock
[src]
impl ToStringObject for DubpBlock
[src]
type StringObject = DubpBlockStringified
Generated string object
fn to_string_object(&self) -> Self::StringObject
[src]
Auto Trait Implementations
impl RefUnwindSafe for DubpBlock
[src]
impl Send for DubpBlock
[src]
impl Sync for DubpBlock
[src]
impl Unpin for DubpBlock
[src]
impl UnwindSafe for DubpBlock
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToJsonObject for T where
T: ToStringObject,
[src]
T: ToStringObject,
pub fn to_json_string(&self) -> Result<String, Error>
[src]
pub fn to_json_string_pretty(&self) -> Result<String, Error>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,