object Secret
- Companion:
- class
Value members
Concrete methods
Returns a new Secret for the specified configuration value.
Returns a new Secret for the specified configuration value.
The Secret#valueHash will be calculated using the shown value.
- Example:
scala> import cats.syntax.all._ import cats.syntax.all._ scala> Secret(12.5) res0: Secret[Double] = Secret(90db4c0)
Returns the configuration value for the specified Secret.
Returns the configuration value for the specified Secret.
This function enables pattern matching on Secrets.
- Example:
scala> import cats.syntax.all._ import cats.syntax.all._ scala> val secret = Secret(12.5) secret: Secret[Double] = Secret(90db4c0) scala> secret match { case Secret(value) => value } res0: Double = 12.5