Skip to content

str

Structs

  • EmptyError - Returned by [NonEmptyStr::new] when the input is empty (after trimming).
  • NonEmptyStr - A borrowed string checked to be non-empty.

firma_secret_provider::non_empty::str::EmptyError

Section titled “firma_secret_provider::non_empty::str::EmptyError”

Struct

Returned by [NonEmptyStr::new] when the input is empty (after trimming).

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

firma_secret_provider::non_empty::str::NonEmptyStr

Section titled “firma_secret_provider::non_empty::str::NonEmptyStr”

Struct

A borrowed string checked to be non-empty.

Generic Parameters:

  • ‘a

Tuple Struct: ()

Methods:

  • fn new(value: &'a str) -> Result<Self, EmptyError> - Trims value and wraps it, failing if nothing is left.

Trait Implementations:

  • Debug
    • fn fmt(self: &Self, f: & mut fmt::Formatter) -> fmt::Result
  • Display
    • fn fmt(self: &Self, f: & mut fmt::Formatter) -> fmt::Result
  • Deref
    • fn deref(self: &Self) -> &<Self as >::Target