pureconfig.ConfigConvert
See theConfigConvert companion trait
object ConfigConvert extends ConvertHelpers
Provides methods to create ConfigConvert instances.
Attributes
- Companion
- trait
- Graph
-
- Supertypes
- Self type
-
ConfigConvert.type
Members list
Value members
Concrete methods
def viaNonEmptyString[A](fromF: String => Either[FailureReason, A], toF: A => String)(implicit ct: ClassTag[A]): ConfigConvert[A]
def viaNonEmptyStringOpt[A : ClassTag](fromF: String => Option[A], toF: A => String): ConfigConvert[A]
Inherited methods
Attributes
- Inherited from:
- ConvertHelpers
Convert a String => Option
into a String => Option[ConfigValueLocation] => Either
such that after application
Convert a String => Option
into a String => Option[ConfigValueLocation] => Either
such that after application
Some(t)
becomes_ => Right(t)
None
becomeslocation => Left(CannotConvert(value, type, "", location)
Attributes
- Inherited from:
- ConvertHelpers
Convert a String => Try
into a String => Option[ConfigValueLocation] => Either
such that after application
Convert a String => Try
into a String => Option[ConfigValueLocation] => Either
such that after application
Success(t)
becomes_ => Right(t)
Failure(e)
becomeslocation => Left(CannotConvert(value, type, e.getMessage, location)
Attributes
- Inherited from:
- ConvertHelpers
Implicits
Implicits
implicit def fromReaderAndWriter[A](implicit reader: ConfigReader[A], writer: ConfigWriter[A]): ConfigConvert[A]
In this article