Skip to main content

FormatSafeUrlExt

Trait FormatSafeUrlExt 

Source
pub trait FormatSafeUrlExt {
    // Required method
    fn format_safe(&self, f: &mut Formatter<'_>) -> Result;
}
Expand description

Extension trait for Url to render a Debug representation with any password redacted.

Required Methods§

Source

fn format_safe(&self, f: &mut Formatter<'_>) -> Result

Debug-format the URL with its password replaced by ****.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl FormatSafeUrlExt for Url

Source§

fn format_safe(&self, f: &mut Formatter<'_>) -> Result

Implementors§