# {py:mod}`django_socio_grpc.grpc_actions.placeholders` ```{py:module} django_socio_grpc.grpc_actions.placeholders ``` ```{autodoc2-docstring} django_socio_grpc.grpc_actions.placeholders :allowtitles: ``` ## Module Contents ### Classes ````{list-table} :class: autosummary longtable :align: left * - {py:obj}`Placeholder ` - ```{autodoc2-docstring} django_socio_grpc.grpc_actions.placeholders.Placeholder :summary: ``` * - {py:obj}`AttrPlaceholder ` - ```{autodoc2-docstring} django_socio_grpc.grpc_actions.placeholders.AttrPlaceholder :summary: ``` * - {py:obj}`FnPlaceholder ` - ```{autodoc2-docstring} django_socio_grpc.grpc_actions.placeholders.FnPlaceholder :summary: ``` * - {py:obj}`StrTemplatePlaceholder ` - ```` ### Functions ````{list-table} :class: autosummary longtable :align: left * - {py:obj}`_get_lookup_fields ` - ```{autodoc2-docstring} django_socio_grpc.grpc_actions.placeholders._get_lookup_fields :summary: ``` * - {py:obj}`_get_serializer_class ` - ```{autodoc2-docstring} django_socio_grpc.grpc_actions.placeholders._get_serializer_class :summary: ``` ```` ### Data ````{list-table} :class: autosummary longtable :align: left * - {py:obj}`_T ` - ```{autodoc2-docstring} django_socio_grpc.grpc_actions.placeholders._T :summary: ``` * - {py:obj}`ServiceCallable ` - ```{autodoc2-docstring} django_socio_grpc.grpc_actions.placeholders.ServiceCallable :summary: ``` * - {py:obj}`LookupField ` - ```{autodoc2-docstring} django_socio_grpc.grpc_actions.placeholders.LookupField :summary: ``` * - {py:obj}`SelfSerializer ` - ```{autodoc2-docstring} django_socio_grpc.grpc_actions.placeholders.SelfSerializer :summary: ``` ```` ### API ````{py:data} _T :canonical: django_socio_grpc.grpc_actions.placeholders._T :value: > 'TypeVar(...)' ```{autodoc2-docstring} django_socio_grpc.grpc_actions.placeholders._T ``` ```` ````{py:data} ServiceCallable :canonical: django_socio_grpc.grpc_actions.placeholders.ServiceCallable :value: > None ```{autodoc2-docstring} django_socio_grpc.grpc_actions.placeholders.ServiceCallable ``` ```` `````{py:class} Placeholder :canonical: django_socio_grpc.grpc_actions.placeholders.Placeholder ```{autodoc2-docstring} django_socio_grpc.grpc_actions.placeholders.Placeholder ``` ````{py:method} resolve(service: django_socio_grpc.generics.GenericService) :canonical: django_socio_grpc.grpc_actions.placeholders.Placeholder.resolve :abstractmethod: ```{autodoc2-docstring} django_socio_grpc.grpc_actions.placeholders.Placeholder.resolve ``` ```` ````{py:method} __call__(service: django_socio_grpc.generics.GenericService, action: django_socio_grpc.grpc_actions.actions.GRPCAction, field: str) :canonical: django_socio_grpc.grpc_actions.placeholders.Placeholder.__call__ ```{autodoc2-docstring} django_socio_grpc.grpc_actions.placeholders.Placeholder.__call__ ``` ```` ````` `````{py:class} AttrPlaceholder(attr_name: str) :canonical: django_socio_grpc.grpc_actions.placeholders.AttrPlaceholder Bases: {py:obj}`django_socio_grpc.grpc_actions.placeholders.Placeholder` ```{autodoc2-docstring} django_socio_grpc.grpc_actions.placeholders.AttrPlaceholder ``` ```{rubric} Initialization ``` ```{autodoc2-docstring} django_socio_grpc.grpc_actions.placeholders.AttrPlaceholder.__init__ ``` ````{py:method} resolve(service: django_socio_grpc.generics.GenericService) :canonical: django_socio_grpc.grpc_actions.placeholders.AttrPlaceholder.resolve ```` ````` `````{py:class} FnPlaceholder(fn: django_socio_grpc.grpc_actions.placeholders.ServiceCallable) :canonical: django_socio_grpc.grpc_actions.placeholders.FnPlaceholder Bases: {py:obj}`django_socio_grpc.grpc_actions.placeholders.Placeholder` ```{autodoc2-docstring} django_socio_grpc.grpc_actions.placeholders.FnPlaceholder ``` ```{rubric} Initialization ``` ```{autodoc2-docstring} django_socio_grpc.grpc_actions.placeholders.FnPlaceholder.__init__ ``` ````{py:method} resolve(service: django_socio_grpc.generics.GenericService) :canonical: django_socio_grpc.grpc_actions.placeholders.FnPlaceholder.resolve ```` ````` `````{py:class} StrTemplatePlaceholder(string: str, *params: str | django_socio_grpc.grpc_actions.placeholders.ServiceCallable[str]) :canonical: django_socio_grpc.grpc_actions.placeholders.StrTemplatePlaceholder Bases: {py:obj}`django_socio_grpc.grpc_actions.placeholders.Placeholder` ````{py:method} get_param_value(service, param: str | django_socio_grpc.grpc_actions.placeholders.ServiceCallable[str]) :canonical: django_socio_grpc.grpc_actions.placeholders.StrTemplatePlaceholder.get_param_value ```{autodoc2-docstring} django_socio_grpc.grpc_actions.placeholders.StrTemplatePlaceholder.get_param_value ``` ```` ````{py:method} resolve(service: django_socio_grpc.generics.GenericService) :canonical: django_socio_grpc.grpc_actions.placeholders.StrTemplatePlaceholder.resolve ```` ````` ````{py:function} _get_lookup_fields(service) :canonical: django_socio_grpc.grpc_actions.placeholders._get_lookup_fields ```{autodoc2-docstring} django_socio_grpc.grpc_actions.placeholders._get_lookup_fields ``` ```` ````{py:function} _get_serializer_class(service) :canonical: django_socio_grpc.grpc_actions.placeholders._get_serializer_class ```{autodoc2-docstring} django_socio_grpc.grpc_actions.placeholders._get_serializer_class ``` ```` ````{py:data} LookupField :canonical: django_socio_grpc.grpc_actions.placeholders.LookupField :value: > 'FnPlaceholder(...)' ```{autodoc2-docstring} django_socio_grpc.grpc_actions.placeholders.LookupField ``` ```` ````{py:data} SelfSerializer :canonical: django_socio_grpc.grpc_actions.placeholders.SelfSerializer :value: > 'FnPlaceholder(...)' ```{autodoc2-docstring} django_socio_grpc.grpc_actions.placeholders.SelfSerializer ``` ````