Struct dubp_block::DubpBlockV10 [−][src]
pub struct DubpBlockV10 { /* fields omitted */ }
Expand description
Wrap a Block document.
Must be created by parsing/deserialization or using a builder.
Implementations
impl DubpBlockV10
[src]
impl DubpBlockV10
[src]pub fn identities(&self) -> &[IdentityDocumentV10]
[src]
pub fn joiners(&self) -> &[MembershipDocumentV10]
[src]
pub fn actives(&self) -> &[MembershipDocumentV10]
[src]
pub fn leavers(&self) -> &[MembershipDocumentV10]
[src]
pub fn revoked(&self) -> Vec<Cow<'_, CompactRevocationDocumentV10>>
[src]
pub fn excluded(&self) -> &[PublicKey]
[src]
pub fn certifications(&self) -> Vec<Cow<'_, CompactCertificationDocumentV10>>
[src]
pub fn transactions(&self) -> &[TransactionDocumentV10]
[src]
pub fn as_compact_text(&self) -> String
[src]
pub fn as_compact_text(&self) -> String
[src]Needed only for BMA (to be removed)
Trait Implementations
impl Clone for DubpBlockV10
[src]
impl Clone for DubpBlockV10
[src]fn clone(&self) -> DubpBlockV10
[src]
fn clone(&self) -> DubpBlockV10
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for DubpBlockV10
[src]
impl Debug for DubpBlockV10
[src]impl Default for DubpBlockV10
[src]
impl Default for DubpBlockV10
[src]fn default() -> DubpBlockV10
[src]
fn default() -> DubpBlockV10
[src]Returns the “default value” for a type. Read more
impl<'de> Deserialize<'de> for DubpBlockV10
[src]
impl<'de> Deserialize<'de> for DubpBlockV10
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl DubpBlockTrait for DubpBlockV10
[src]
impl DubpBlockTrait for DubpBlockV10
[src]type Signator = Signator
fn common_time(&self) -> u64
[src]
fn common_time(&self) -> u64
[src]Common time in block (also known as ‘blockchain time’)
fn compute_hashed_string(&self) -> String
[src]
fn compute_hashed_string(&self) -> String
[src]Compute the character string that hashed
fn compute_signed_string(&self) -> String
[src]
fn compute_signed_string(&self) -> String
[src]Compute the character string that will be signed
fn current_frame_size(&self) -> usize
[src]
fn current_frame_size(&self) -> usize
[src]Get current frame size (in blocks)
fn currency_parameters(&self) -> Option<CurrencyParameters>
[src]
fn currency_parameters(&self) -> Option<CurrencyParameters>
[src]Get currency parameters
fn generate_compact_inner_text(&self) -> String
[src]
fn generate_compact_inner_text(&self) -> String
[src]Generate compact inner text (for compute inner_hash)
fn inner_hash(&self) -> Hash
[src]
fn inner_hash(&self) -> Hash
[src]Get block inner hash
fn issuers_count(&self) -> usize
[src]
fn issuers_count(&self) -> usize
[src]Get number of compute members in the current frame
fn issuers_frame(&self) -> usize
[src]
fn issuers_frame(&self) -> usize
[src]Get size of the current frame (in blocks)
fn local_time(&self) -> u64
[src]
fn local_time(&self) -> u64
[src]Get local time
fn members_count(&self) -> usize
[src]
fn members_count(&self) -> usize
[src]Get number of members in wot
fn monetary_mass(&self) -> u64
[src]
fn monetary_mass(&self) -> u64
[src]Get monetary mass
fn previous_blockstamp(&self) -> Blockstamp
[src]
fn previous_blockstamp(&self) -> Blockstamp
[src]Get previous blockstamp
fn previous_hash(&self) -> Hash
[src]
fn previous_hash(&self) -> Hash
[src]Get previous hash
fn reduce(&mut self)
[src]
fn reduce(&mut self)
[src]Lightens the block (for example to store it while minimizing the space required)
fn verify_inner_hash(&self) -> Result<(), VerifyBlockHashError>
[src]
fn verify_inner_hash(&self) -> Result<(), VerifyBlockHashError>
[src]Verify inner hash
fn verify_signature(&self) -> Result<(), SigError>
[src]
fn verify_signature(&self) -> Result<(), SigError>
[src]Verify signature
fn verify_hash(&self) -> Result<(), VerifyBlockHashError>
[src]
fn verify_hash(&self) -> Result<(), VerifyBlockHashError>
[src]Verify block hash
fn compute_hash(&self) -> BlockHash
[src]
fn compute_hash(&self) -> BlockHash
[src]Compute hash
fn compute_inner_hash(&self) -> Hash
[src]
fn compute_inner_hash(&self) -> Hash
[src]Compute inner hash
impl FromStringObject for DubpBlockV10
[src]
impl FromStringObject for DubpBlockV10
[src]fn from_string_object(
stringified: &DubpBlockV10Stringified
) -> Result<Self, TextParseError>
[src]
fn from_string_object(
stringified: &DubpBlockV10Stringified
) -> Result<Self, TextParseError>
[src]Transforms object fields into string
impl PartialEq<DubpBlockV10> for DubpBlockV10
[src]
impl PartialEq<DubpBlockV10> for DubpBlockV10
[src]fn eq(&self, other: &DubpBlockV10) -> bool
[src]
fn eq(&self, other: &DubpBlockV10) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &DubpBlockV10) -> bool
[src]
fn ne(&self, other: &DubpBlockV10) -> bool
[src]This method tests for !=
.
impl Serialize for DubpBlockV10
[src]
impl Serialize for DubpBlockV10
[src]impl ToStringObject for DubpBlockV10
[src]
impl ToStringObject for DubpBlockV10
[src]fn to_string_object(&self) -> DubpBlockV10Stringified
[src]
fn to_string_object(&self) -> DubpBlockV10Stringified
[src]Transforms an object into a json object
type StringObject = DubpBlockV10Stringified
type StringObject = DubpBlockV10Stringified
Generated string object
impl StructuralPartialEq for DubpBlockV10
[src]
Auto Trait Implementations
impl RefUnwindSafe for DubpBlockV10
impl Send for DubpBlockV10
impl Sync for DubpBlockV10
impl Unpin for DubpBlockV10
impl UnwindSafe for DubpBlockV10
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToJsonObject for T where
T: ToStringObject,
[src]
impl<T> ToJsonObject for T where
T: ToStringObject,
[src]fn to_json_string(&self) -> Result<String, Error>
[src]
fn to_json_string(&self) -> Result<String, Error>
[src]Convert to JSON String
fn to_json_string_pretty(&self) -> Result<String, Error>
[src]
fn to_json_string_pretty(&self) -> Result<String, Error>
[src]Convert to JSON String pretty
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,