Struct helium_api::models::Hotspot[][src]

pub struct Hotspot {
Show 13 fields pub address: String, pub owner: String, pub name: Option<String>, pub added_height: Option<u64>, pub lat: Option<f64>, pub lng: Option<f64>, pub location: Option<String>, pub mode: HotspotStakingMode, pub elevation: Option<i32>, pub gain: Option<Dbi>, pub geocode: Geocode, pub nonce: u64, pub speculative_nonce: u64,
}

Fields

address: String

The address of the hotspots. This is the public key in base58 check-encoding of the hotspot.

owner: String

The hotspot owner wallet address

name: Option<String>

The “animal” name of the hotspot. The name can be None for some API endpoints.

added_height: Option<u64>

The block height when the hotspot was added to the blockchain

lat: Option<f64>

The last asserted latitude of the hotspot

lng: Option<f64>

The last asserted longitude of the hotspot

location: Option<String>

The h3 index based on the lat/lon of the hotspot is used for PoC challenges.

mode: HotspotStakingMode

The mode in which the hotspots was added to the network.

elevation: Option<i32>

The elevation (in meters) above or belowo sea level

gain: Option<Dbi>

The gain (in dbi) above or belowo sea level

geocode: Geocode

The geocode information for the hotspot location

nonce: u64

The current nonce for the hotspot

speculative_nonce: u64

The speculative nonce for the hotspot. This field is only meaningful when a single hotspot is requested

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.