Back to bricks list
Introduction
Getting Started
Developer guide
Release
Architecture
CLI
Technical documentations
Version

StrRField

RFeeld for primitives values, use subclass and not this one directly

:param BaseRField: [description] :type BaseRField: [type] :return: [description] :rtype: [type]

Attributes
include_in_dict_view: boolsearchable: boolvalidator: Validator
Functions
__INIT__
searchable : bool - False
if true, the field value is saved in the DB and could be search on a request Only small amount of data can be mark as searchable
default_value : str
default value of the resource attribute Support primitive value, Type of Callable function If type or callable, it will be called without parameter to initialise the default value
include_in_dict_view : bool - True
if true, this field we be included in the default dict view Do not mark huge fields as include in dict view
DESERIALIZE
r_field_value : Any
Return type : Any
GET_DEFAULT_VALUE
Return type : Any
SERIALIZE
r_field_value : Any
Return type : Any