class_docstr: Series.struct namespace.
class_docstr_tok: ["Series.struct","namespace","."]
docstr: Get the struct definition as a name/dtype schema dict.
docstr_tok: ["Get","the","struct","definition","as","a","name\/dtype","schema","dict","."]
code: def schema(self) -> OrderedDict[str, DataType]:
      """Get the struct definition as a name/dtype schema dict."""
      if getattr(self, "_s", None) is None:
          return OrderedDict()
      return OrderedDict(self._s.dtype().to_schema())
  
file_path: polars/py-polars/polars/series/struct.py
imports: from __future__ import annotations
  import os
  from collections import OrderedDict
  from typing import TYPE_CHECKING, Sequence
  from polars.series.utils import expr_dispatch
  from polars.utils._wrap import wrap_df
  from polars.utils.various import sphinx_accessor
label_desc: Use image node_id 7 for calling the StructNameSpace obj's underlying member method code with example usage: obj.schema() and returns: OrderedDict, OrderedDict