fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        write!(f, "{} {}", Paint::green(self.method()), Paint::blue(&self.uri))?;

        // Print the requests media type when the route specifies a format.
        if let Some(media_type) = self.format() {
            if !media_type.is_any() {
                write!(f, " {}{}{}",
                    Paint::yellow(media_type.top()),
                    Paint::yellow("/"),
                    Paint::yellow(media_type.sub()))?;
            }
        }

        Ok(())
    }
/// Pretty prints a Request. This is primarily used by Rocket's logging
/// infrastructure.
Pretty prints a Request. This is primarily used by Rocket's logging
infrastructure.
Pretty prints a Request . This is primarily used by Rocket ' s logging infrastructure .
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        write!(f, "{} {}", Paint::green(self.method()), Paint::blue(&self.uri))?;
        // Print the requests media type when the route specifies a format.
        if let Some(media_type) = self.format() {
            if !media_type.is_any() {
                write!(f, " {}{}{}",
                    Paint::yellow(media_type.top()),
                    Paint::yellow("/"),
                    Paint::yellow(media_type.sub()))?;
            }
        }
        Ok(())
    }
fn fmt ( & self , f : & mut fmt :: Formatter < ' _ > ) -> fmt :: Result { write ! ( f " " Paint green ( self method ( ) ) Paint blue ( self uri ) ) ? ; // Print the requests media type when the route specifies a format. if let Some ( media_type ) = self . format ( ) { if ! media_type . is_any ( ) { write ! ( f " " Paint yellow ( media_type top ( ) ) Paint yellow ( " " ) Paint yellow ( media_type sub ( ) ) ) ? ; } } Ok ( ( ) ) }
Pretty prints a Request.
Pretty prints a Request .
&self
f
&mut fmt::Formatter<'_>
&self
f
&mut fmt::Formatter<'_>