pub struct NtripCredentials {
pub user: String,
pub pass: String,
}Expand description
Credentials for an NTRIP (RTCM) service
Fields§
§user: StringUsername for the NTRIP service
pass: StringPassword for the NTRIP service
Implementations§
Source§impl NtripCredentials
impl NtripCredentials
Sourcepub fn with_username(&self, username: &str) -> Self
pub fn with_username(&self, username: &str) -> Self
Copies and returns updated NtripCredentials
Sourcepub fn with_password(&self, password: &str) -> Self
pub fn with_password(&self, password: &str) -> Self
Copies and returns updated NtripCredentials
Trait Implementations§
Source§impl Args for NtripCredentials
impl Args for NtripCredentials
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for NtripCredentials
impl Clone for NtripCredentials
Source§fn clone(&self) -> NtripCredentials
fn clone(&self) -> NtripCredentials
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 CommandFactory for NtripCredentials
impl CommandFactory for NtripCredentials
Source§impl Debug for NtripCredentials
impl Debug for NtripCredentials
Source§impl Default for NtripCredentials
impl Default for NtripCredentials
Source§fn default() -> NtripCredentials
fn default() -> NtripCredentials
Returns the “default value” for a type. Read more
Source§impl FromArgMatches for NtripCredentials
impl FromArgMatches for NtripCredentials
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Parser for NtripCredentials
impl Parser for NtripCredentials
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Source§impl PartialEq for NtripCredentials
impl PartialEq for NtripCredentials
impl StructuralPartialEq for NtripCredentials
Auto Trait Implementations§
impl Freeze for NtripCredentials
impl RefUnwindSafe for NtripCredentials
impl Send for NtripCredentials
impl Sync for NtripCredentials
impl Unpin for NtripCredentials
impl UnwindSafe for NtripCredentials
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