Secret

ciris.Secret
See theSecret companion class
object Secret

Attributes

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

Members list

Grouped members

Creating Instances

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> Secret(12.5)
res0: Secret[Double] = Secret(90db4c0)
Source
Secret.scala
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> val secret = Secret(12.5)
secret: Secret[Double] = Secret(90db4c0)
scala> secret match { case Secret(value) => value }
res0: Double = 12.5
Source
Secret.scala

Type Class Instances

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

Attributes

Source
Secret.scala
final implicit def secretShow[A]: Show[Secret[A]]

Attributes

Source
Secret.scala