pub struct VisualCrossingLocator { /* private fields */ }Implementations§
Source§impl VisualCrossingLocator
 
impl VisualCrossingLocator
Sourcepub fn builder() -> Builder<LocationStage>
 
pub fn builder() -> Builder<LocationStage>
Returns a new builder.
Source§impl VisualCrossingLocator
 
impl VisualCrossingLocator
Sourcepub fn new(
    location: LocationName,
    field: FieldName,
    type_: VisualCrossingType,
) -> Self
 
pub fn new( location: LocationName, field: FieldName, type_: VisualCrossingType, ) -> Self
Constructs a new instance of the type.
Sourcepub fn location(&self) -> &LocationName
 
pub fn location(&self) -> &LocationName
Location to fetch data from. Can be any arbitrary string (i.e. name, abbreviation, zip code, lat/long, etc.) as remote endpoint performs location resolution.
Sourcepub fn endpoint(&self) -> Option<&VisualCrossingEndpointUri>
 
pub fn endpoint(&self) -> Option<&VisualCrossingEndpointUri>
Defaults to HISTORY. Endpoint to fetch data from for this series.
pub fn field(&self) -> &FieldName
pub fn type_(&self) -> &VisualCrossingType
Trait Implementations§
Source§impl Clone for VisualCrossingLocator
 
impl Clone for VisualCrossingLocator
Source§fn clone(&self) -> VisualCrossingLocator
 
fn clone(&self) -> VisualCrossingLocator
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 VisualCrossingLocator
 
impl Debug for VisualCrossingLocator
Source§impl<'de> Deserialize<'de> for VisualCrossingLocator
 
impl<'de> Deserialize<'de> for VisualCrossingLocator
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
Source§impl From<VisualCrossingLocator> for Builder<Complete>
 
impl From<VisualCrossingLocator> for Builder<Complete>
Source§fn from(v: VisualCrossingLocator) -> Self
 
fn from(v: VisualCrossingLocator) -> Self
Converts to this type from the input type.
Source§impl Hash for VisualCrossingLocator
 
impl Hash for VisualCrossingLocator
Source§impl Ord for VisualCrossingLocator
 
impl Ord for VisualCrossingLocator
Source§fn cmp(&self, other: &VisualCrossingLocator) -> Ordering
 
fn cmp(&self, other: &VisualCrossingLocator) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
    Self: Sized,
 
fn max(self, other: Self) -> Selfwhere
    Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for VisualCrossingLocator
 
impl PartialEq for VisualCrossingLocator
Source§impl PartialOrd for VisualCrossingLocator
 
impl PartialOrd for VisualCrossingLocator
Source§impl Serialize for VisualCrossingLocator
 
impl Serialize for VisualCrossingLocator
impl Eq for VisualCrossingLocator
impl StructuralPartialEq for VisualCrossingLocator
Auto Trait Implementations§
impl Freeze for VisualCrossingLocator
impl RefUnwindSafe for VisualCrossingLocator
impl Send for VisualCrossingLocator
impl Sync for VisualCrossingLocator
impl Unpin for VisualCrossingLocator
impl UnwindSafe for VisualCrossingLocator
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<Q, K> Comparable<K> for Q
 
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.Source§impl<T> Instrument for T
 
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
 
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
 
fn into_request(self) -> Request<T>
Wrap the input message 
T in a tonic::Request