Struct off_blockway::chain::Chain
[−]
[src]
pub struct Chain { /* fields omitted */ }
pub struct Chain { /* fields omitted */ }
impl Chain
[src]fn new() -> Chain
[src]fn push(&mut self, block: Block)
[src]fn uid(&self) -> &String
[src]fn set_uid(&mut self, url: String)
[src]fn len(&self) -> usize
[src]fn origin(&self) -> &Block
[src]fn tail_hash(&self) -> &String
[src]fn contains(&self, hash: &String) -> bool
[src]fn print_chain(&self) -> Result<(), Error>
[src]fn write_to(&self, filename: &str) -> Result<(), Error>
[src]fn read_json(filename: &str) -> Result<String, Error>
[src]fn read_and_construct(filename: &str) -> Result<Chain, Error>
[src]impl Debug for Chain
[src]