A validator for collections, will only succeed if the underlying collection is not empty.
A validator for collections, will only succeed if the underlying collection is not empty.
The inner type of the collection.
The source collection.
A ValidatedNel that will return the content of the collection if not empty, or a failure otherwise.
A validator for options, will only succeed if the option is not empty.
A validator for options, will only succeed if the option is not empty.
The type of the option.
The source option.
A ValidatedNel that will return the content of the option if not empty, or a failure otherwise.
A validator for maps, will only succeed if the option is not empty.
A validator for maps, will only succeed if the option is not empty.
The type of the key.
The type of the value of the map.
The source option.
A ValidatedNel that will return the map itself if it's not empty, or a failure otherwise.
A validator for strings, will only succeed if the string is not empty.
A validator for strings, will only succeed if the string is not empty.
The source option.
A ValidatedNel that will return the content of the string if not empty, or a failure otherwise.