Skip to content

string

Structs

  • EmptyError - Returned by [NonEmptyString::new] when the input is empty.
  • NonEmptyString - A String checked to be non-empty.

firma_secret_provider::non_empty::string::EmptyError

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

Struct

Returned by [NonEmptyString::new] when the input is empty.

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::string::NonEmptyString

Section titled “firma_secret_provider::non_empty::string::NonEmptyString”

Struct

A String checked to be non-empty.

Tuple Struct: ()

Methods:

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

Traits: Eq

Trait Implementations:

  • Clone
    • fn clone(self: &Self) -> NonEmptyString
  • Deref
    • fn deref(self: &Self) -> &<Self as >::Target
  • PartialEq
    • fn eq(self: &Self, other: &NonEmptyString) -> bool
  • Serialize
    • fn serialize<__S>(self: &Self, __serializer: __S) -> _serde::__private228::Result<<__S as >::Ok, <__S as >::Error>
  • Debug
    • fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
  • Deserialize
    • fn deserialize<D>(deserializer: D) -> Result<Self, <D as >::Error>