Skip to content

NonEmptyStr

Functions

  • new - Trims value and wraps it, failing if nothing is left.

firma_secret_provider::non_empty::str::NonEmptyStr::new

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

Function

Trims value and wraps it, failing if nothing is left.

Returns [EmptyError] if value is empty after trimming.

fn new(value: &'a str) -> Result<Self, EmptyError>