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
sourceimpl 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
sourceimpl Clone for UrlParsing
impl Clone for UrlParsing
sourcefn clone(&self) -> UrlParsing
fn clone(&self) -> UrlParsing
Returns a copy of the value. Read more
1.0.0 · sourceconst 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 RefUnwindSafe for UrlParsing
impl Send for UrlParsing
impl Sync for UrlParsing
impl Unpin for UrlParsing
impl UnwindSafe for UrlParsing
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more