PathValue

caliban.PathValue
See thePathValue companion trait
object PathValue

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
PathValue.type

Members list

Type members

Classlikes

object Index

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Index.type
object Key

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Key.type

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def fromEither(either: Either[String, Int]): PathValue
def parse(value: String): PathValue

This function parses a string and returns a PathValue. If the string contains only digits, it returns a PathValue.Index. Otherwise, it returns a PathValue.Key.

This function parses a string and returns a PathValue. If the string contains only digits, it returns a PathValue.Index. Otherwise, it returns a PathValue.Key.

Value parameters

value

the string to parse

Attributes

Returns

a PathValue which is either an Index if the string is numeric, or a Key otherwise