Before the changes, the parser would only validate the input, returning the validated string to the user (which still needs to be parsed to the according type).
Changes
This PR introduces the changes that address this issue. The major change is the introduction of Parsable trait described in the code. The SimpleParam is now generic over Parsable trait.
Most of the changes include adjusting the rest of the code to Parsable trait + some fixups.
Introduced Parsable trait
Made SimpleParam be generic over Parsable
Adjusted the rest of the code to usage of generic SimpleParam
some fixups, such as changing the types of duration, or consistency_level parameters
Motivation
Before the changes, the parser would only validate the input, returning the validated string to the user (which still needs to be parsed to the according type).
Changes
This PR introduces the changes that address this issue. The major change is the introduction of
Parsable
trait described in the code. TheSimpleParam
is now generic overParsable
trait.Most of the changes include adjusting the rest of the code to
Parsable
trait + some fixups.Parsable
traitSimpleParam
be generic overParsable
SimpleParam
duration
, orconsistency_level
parameters