SetRepeatBuilder
set_repeat
¶
set_repeat(target: Retriever) -> SetRepeatBuilder
Set the repeat of this property using another value
Parameters:
-
*target(Retriever) –The retriever path to set the repeat for. This can be a sequence of retrievers/list indices starting in the current struct
Returns:
-
SetRepeatBuilder–A
SetRepeatBuilderinstance to continue defining additional combinator properties
SetRepeatBuilder
¶
by
¶
by(from_: Get) -> Combinator
Set the repeat of the previously selected property to the result after performing the manipulations from the
provided Get instance
Parameters:
-
*from_(Get) –The
Getinstance that encodes the manipulations to perform
Returns:
-
Combinator–A combinator that encodes the setter logic defined by the
SetRepeatBuilderchain
from_
¶
from_(*source: Retriever | int) -> Combinator
Set the repeat of the previously selected property to the value of this retriever
Parameters:
-
*source(Retriever | int, default:()) –The retriever path to fetch the value from. This can be a sequence of retrievers/list indices starting in the current struct
Returns:
-
Combinator–A combinator that encodes the setter logic defined by the
SetRepeatBuilderchain
from_key
¶
from_key(key: str) -> Combinator
Set the repeat of the previously selected property to the value of this context key
Parameters:
-
key(str) –The context key to get
Returns:
-
Combinator–A combinator that encodes the setter logic defined by the
SetRepeatBuilderchain
from_len
¶
from_len(*source: Retriever | int) -> Combinator
Set the repeat of the previously selected property to the length of this value if it is a list
Parameters:
-
*source(Retriever | int, default:()) –The retriever path to fetch the value from. This can be a sequence of retrievers/list indices starting in the current struct
Returns:
-
Combinator–A combinator that encodes the setter logic defined by the
SetRepeatBuilderchain
Raises:
-
ValueError–if the source value is not a list
to
¶
to(val: Any) -> Combinator
Set the repeat of the previously selected property to this literal value
Parameters:
-
val(Any) –The literal value
Returns:
-
Combinator–A combinator that encodes the setter logic defined by the
SetRepeatBuilderchain