#[non_exhaustive]pub enum PercentPolicy {
Refuse,
Literal,
}Expand description
What a % not followed by two hex digits means in urlencoded input.
§Examples
use form_net::{decode_into, PercentPolicy};
let mut out = [0u8; 8];
assert!(decode_into(b"100%", &mut out, PercentPolicy::Refuse).is_err());
assert_eq!(decode_into(b"100%", &mut out, PercentPolicy::Literal)?, "100%");Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for PercentPolicy
impl Clone for PercentPolicy
impl Copy for PercentPolicy
Source§impl Debug for PercentPolicy
impl Debug for PercentPolicy
impl Eq for PercentPolicy
Source§impl PartialEq for PercentPolicy
impl PartialEq for PercentPolicy
impl StructuralPartialEq for PercentPolicy
Auto Trait Implementations§
impl Freeze for PercentPolicy
impl RefUnwindSafe for PercentPolicy
impl Send for PercentPolicy
impl Sync for PercentPolicy
impl Unpin for PercentPolicy
impl UnsafeUnpin for PercentPolicy
impl UnwindSafe for PercentPolicy
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