pub enum ProtocolUsageMode {
Ignored,
Used,
UsedWithUndefinedIfEmpty,
}
Expand description
How to handle the URL protocol, or the absence of it, during UrlParsing
.
Description
The “Use Protocol” checkbox in PasswordMaker Pro Javascript Edition has some weird behaviour, that’s probably a bug. This enum lets you select how to hande the case that the user wants to use the Protocol, but the input string doesn’t contain one.
Variants§
Ignored
The protocol part of the URI is not used in the output.
Used
The protocol part of the URI is used in the output, if it’s non-empty in the input. Otherwise it isn’t.
UsedWithUndefinedIfEmpty
The protocol part of the URI is used in the output, if it’s non-empty in the input. Otherwise the string “undefined” is used in the output. This mirrors behaviour of the PasswordMaker Pro Javascript Edition.
Trait Implementations§
source§impl Clone for ProtocolUsageMode
impl Clone for ProtocolUsageMode
source§fn clone(&self) -> ProtocolUsageMode
fn clone(&self) -> ProtocolUsageMode
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