Parts
The public user API for specifying the required and optional parts of a directive (arguments, fields or body) together with optional converter/validator functions.
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- Parts.type
Members list
Value members
Concrete methods
Specifies a required argument.
Specifies a required argument.
Attributes
- convert
the function to use for converting and validating the parsed value
- withWS
whether the argument supports whitespace characters (only one of these can exist in any single directive markup)
- Returns:
a directive part that can be combined with further parts with the
~
operator
Specifies standard block-level content as the body of the directive.
Specifies standard block-level content as the body of the directive.
Attributes
- Returns:
a directive part that can be combined with further parts with the
~
operator
Specifies that the body of the directive markup should get passed to the conversion function as a raw string.
Specifies that the body of the directive markup should get passed to the conversion function as a raw string.
Attributes
- f
the function to use for converting and validating the parsed value
- Returns:
a directive part that can be combined with further parts with the
~
operator
Specifies a required named field.
Specifies a required named field.
Attributes
- convert
the function to use for converting and validating the parsed value
- name
the name of the field as used in the directive markup (without the colons)
- Returns:
a directive part that can be combined with further parts with the
~
operator
Specifies an optional argument.
Specifies an optional argument.
Attributes
- convert
the function to use for converting and validating the parsed value if it is present
- withWS
whether the argument supports whitespace characters (only one of these can exist in any single directive markup)
- Returns:
a directive part that can be combined with further parts with the
~
operator
Specifies an optional named field.
Specifies an optional named field.
Attributes
- convert
the function to use for converting and validating the parsed value if it is present
- name
the name of the field as used in the directive markup (without the colons)
- Returns:
a directive part that can be combined with further parts with the
~
operator