Struct passwordmaker_rs::UrlParsing
source · pub struct UrlParsing { /* private fields */ }
Expand description
Settings for the parsing of the user’s input URL.
This is used to generate the data
parameter for PasswordMaker
.
Implementations§
source§impl UrlParsing
impl UrlParsing
sourcepub fn new(
use_protocol: ProtocolUsageMode,
use_userinfo: bool,
use_subdomains: bool,
use_domain: bool,
use_port_path: bool
) -> Self
pub fn new(
use_protocol: ProtocolUsageMode,
use_userinfo: bool,
use_subdomains: bool,
use_domain: bool,
use_port_path: bool
) -> Self
Creates a new UrlParsing
instance with the given settings.
sourcepub fn parse(&self, input: &str) -> String
pub fn parse(&self, input: &str) -> String
Parses an input string, applying the settings in self
, and generates a string suitable for
the data
parameter of PasswordMaker
Trait Implementations§
source§impl Clone for UrlParsing
impl Clone for UrlParsing
source§fn clone(&self) -> UrlParsing
fn clone(&self) -> UrlParsing
Returns a copy 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 more