docarray.simple.struct module

class docarray.simple.struct.StructView(obj=None, copy=False)[source]

Bases: docarray.base.BaseProtoView, collections.abc.MutableMapping

Create a Python mutable mapping view of Protobuf Struct.

This can be used in all Jina types where a protobuf.Struct is returned, e.g. Document.tags

Note

This class behaves like defaultdict.

update(d, **kwargs)[source]

# noqa: DAR101 # noqa: DAR102 # noqa: DAR103