pub struct PolarResource {
pub id: String,
pub name: String,
pub description: Option<String>,
pub source_label: Option<String>,
pub polar: Polar,
}Expand description
A polar, with the identifying metadata Signal K’s own schema carries
alongside the table itself – one entry of performance.polars.
Fields§
§id: StringThe UUID this polar is keyed by under performance.polars.
name: StringA boat generally has more than one of these – full sail, reefed, with a spinnaker – and this is the only field the schema actually requires for telling them apart.
description: Option<String>Free text – a boat model, sail configuration, or conditions this was built or measured under. The schema leaves this to the mariner, and so does this type.
source_label: Option<String>The source.label Signal K’s own schema asks for when a source is
stated at all. Everything else that object can carry is not this
crate’s concern, the same distance crate::delta::Reading::source
already keeps.
polar: PolarThe table itself.
Trait Implementations§
Source§impl Clone for PolarResource
impl Clone for PolarResource
Source§fn clone(&self) -> PolarResource
fn clone(&self) -> PolarResource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PolarResource
impl Debug for PolarResource
Source§impl PartialEq for PolarResource
impl PartialEq for PolarResource
Source§fn eq(&self, other: &PolarResource) -> bool
fn eq(&self, other: &PolarResource) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PolarResource
Auto Trait Implementations§
impl Freeze for PolarResource
impl RefUnwindSafe for PolarResource
impl Send for PolarResource
impl Sync for PolarResource
impl Unpin for PolarResource
impl UnsafeUnpin for PolarResource
impl UnwindSafe for PolarResource
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