pub struct SearchResult {
pub name: String,
pub size: u64,
pub postcode: String,
pub orientation: Orientation,
pub outputs: u32,
pub last_output: Option<Span>,
pub system_id: u32,
pub panel: Option<String>,
pub inverter: Option<String>,
pub distance: Option<f32>,
pub latitude: Option<f32>,
pub longitude: Option<f32>,
}Expand description
A search result.
Returned by the search endpoint.
Fields§
§name: StringName.
size: u64Size in watts.
postcode: StringPostcode.
orientation: OrientationOrientation.
outputs: u32Number of outputs.
last_output: Option<Span>How long ago the last output was recorded, or None if the system has no outputs.
system_id: u32System ID.
panel: Option<String>Panel brand.
inverter: Option<String>Inverter brand.
distance: Option<f32>Distance in kilometres from the location provided in the search query.
latitude: Option<f32>Latitude.
longitude: Option<f32>Longitude.
Trait Implementations§
Source§impl Clone for SearchResult
impl Clone for SearchResult
Source§fn clone(&self) -> SearchResult
fn clone(&self) -> SearchResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SearchResult
impl Debug for SearchResult
Source§impl<'de> Deserialize<'de> for SearchResult
impl<'de> Deserialize<'de> for SearchResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SearchResult
impl RefUnwindSafe for SearchResult
impl Send for SearchResult
impl Sync for SearchResult
impl Unpin for SearchResult
impl UnwindSafe for SearchResult
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