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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for UrlParsing
impl RefUnwindSafe for UrlParsing
impl Send for UrlParsing
impl Sync for UrlParsing
impl Unpin for UrlParsing
impl UnwindSafe for UrlParsing
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