Secret

ciris.Secret$
See theSecret companion class
object Secret

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Secret.type

Members list

Concise view

Value members

Concrete methods

final def apply[A](value: A)(implicit show: Show[A]): Secret[A]

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.

Attributes

Example:
scala> import cats.syntax.all._
import cats.syntax.all._
scala> Secret(12.5)
res0: Secret[Double] = Secret(90db4c0)
final def unapply[A](secret: Secret[A]): Some[A]

Returns the configuration value for the specified Secret.

Returns the configuration value for the specified Secret.

This function enables pattern matching on Secrets.

Attributes

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

Implicits

Implicits

final implicit def secretEq[A](implicit eq: Eq[A]): Eq[Secret[A]]

Attributes

final implicit def secretShow[A]: Show[Secret[A]]

Attributes