ResourceRField
.. deprecated:: ResourceRField is deprecated and will be removed in a future version. Please define a sub class of ResourceSet instead.
RField, these fields must be used in resource attribute This field is useful to link a resource with another resource without duplicating them. When the resource is saved after a task, the field must contains a Resource and if yes, this resource will be linked with the generated resource. Next time this resource is instantiated, the linked resource will be provided in the ResourceRField.
//!\ WARNING: the linked resource MUST be a resource provided as input of the task that generate the resource marked with ResourceRField. Otherwise there will be an error before saving the generated resource because it can break the tracability of resources
include_in_dict_view: boolstorage: RFieldStorageInitialize a BaseRField with storage and default value configuration.
Convert a stored value into the field's runtime representation.
Called when loading a field value from storage. Override this method in subclasses to implement custom deserialization logic.
strResourceGet the default value for this field.
If the default value is a Type or Callable, it will be called to generate a new default value. Otherwise, the default value is returned directly.
This ensures that mutable defaults (like lists or dicts) are not shared between Resource instances.
AnyConvert the field's runtime value into a storable representation.
Called when saving a field value to storage. Override this method in subclasses to implement custom serialization logic.
Resourcestr