Skip to content

secret_rewrite

Structs

Enums

  • ContentType - How to encode the secret value before substituting it into the body.

firma_sidecar::secret_rewrite::ContentType

Section titled “firma_sidecar::secret_rewrite::ContentType”

Enum

How to encode the secret value before substituting it into the body.

The codec is selected per-request from the Content-Type header; when the header is absent, [ContentType::sniff] probes the first non-whitespace bytes of the body instead. A header that is present but maps to neither a known type nor Raw, or body bytes that sniffing can’t classify, fail with [UnrecognizedContentType].

Variants:

  • Json - application/json or any application/*+json.
  • FormEncoded - application/x-www-form-urlencoded.
  • Xml - application/xml, text/xml, or any application/*+xml.
  • Raw - Any text/* or application/octet-stream — no encoding applied.

Traits: Eq, Copy

Trait Implementations:

  • Clone
    • fn clone(self: &Self) -> ContentType
  • Debug
    • fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
  • PartialEq
    • fn eq(self: &Self, other: &ContentType) -> bool

firma_sidecar::secret_rewrite::UnrecognizedContentType

Section titled “firma_sidecar::secret_rewrite::UnrecognizedContentType”

Struct

Unit Struct

Traits: Error

Trait Implementations:

  • Debug
    • fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
  • Display
    • fn fmt(self: &Self, __formatter: & mut ::core::fmt::Formatter) -> ::core::fmt::Result