pub struct Puzzle {Show 15 fields
pub id: &'static str,
pub chain: Chain,
pub address: Address,
pub status: Status,
pub pubkey: Option<Pubkey>,
pub key: Option<Key>,
pub prize: Option<f64>,
pub start_date: Option<&'static str>,
pub solve_date: Option<&'static str>,
pub solve_time: Option<u64>,
pub pre_genesis: bool,
pub source_url: Option<&'static str>,
pub transactions: &'static [Transaction],
pub solver: Option<Solver>,
pub assets: Option<Assets>,
}Fields§
§id: &'static str§chain: Chain§address: Address§status: Status§pubkey: Option<Pubkey>§key: Option<Key>§prize: Option<f64>§start_date: Option<&'static str>§solve_date: Option<&'static str>§solve_time: Option<u64>§pre_genesis: bool§source_url: Option<&'static str>§transactions: &'static [Transaction]§solver: Option<Solver>§assets: Option<Assets>Implementations§
Source§impl Puzzle
impl Puzzle
pub fn has_pubkey(&self) -> bool
pub fn pubkey_str(&self) -> Option<&'static str>
pub fn has_private_key(&self) -> bool
pub fn solve_time_formatted(&self) -> Option<String>
pub fn collection(&self) -> &str
pub fn name(&self) -> &str
pub fn funding_tx(&self) -> Option<&Transaction>
pub fn claim_tx(&self) -> Option<&Transaction>
pub fn claim_txid(&self) -> Option<&'static str>
pub fn funding_txid(&self) -> Option<&'static str>
pub fn has_transactions(&self) -> bool
pub fn transaction_count(&self) -> usize
Sourcepub fn asset_path(&self) -> Option<String>
pub fn asset_path(&self) -> Option<String>
Returns the relative path to the main puzzle asset. Example: “assets/zden/level_4/puzzle.png”
Sourcepub fn asset_url(&self) -> Option<String>
pub fn asset_url(&self) -> Option<String>
Returns the GitHub raw URL for remote access to the main puzzle asset. Example: “https://raw.githubusercontent.com/oritwoen/boha/main/assets/zden/level_4/puzzle.png”
pub fn key_range(&self) -> Option<RangeInclusive<u128>>
pub fn key_range_big(&self) -> Option<(BigUint, BigUint)>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Puzzle
impl RefUnwindSafe for Puzzle
impl Send for Puzzle
impl Sync for Puzzle
impl Unpin for Puzzle
impl UnwindSafe for Puzzle
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