docstr: Generate rST documentation for this class' config options.
  
  Excludes traits defined on parent classes.
code: def class_config_rst_doc(cls) -> str:
      """Generate rST documentation for this class' config options.
  
      Excludes traits defined on parent classes.
      """
      lines = []
      classname = cls.__name__
      for _, trait in sorted(cls.class_traits(config=True).items()):
          ttype = trait.__class__.__name__
  
          if not trait.name:
              continue
          termline = classname + "." + trait.name
  
          # Choices or type
          if "Enum" in ttype:
              # include Enum choices
              termline += (
                  " : " + trait.info_rst()
              )  # type:ignore[attr-defined]
          else:
              termline += " : " + ttype
          lines.append(termline)
  
          # Default value
          try:
              dvr = trait.default_value_repr()
          except Exception:
              dvr = None  # ignore defaults we can't construct
          if dvr is not None:
              if len(dvr) > 64:
                  dvr = dvr[:61] + "..."
              # Double up backslashes, so they get to the rendered docs
              dvr = dvr.replace("\\n", "\\\\n")
              lines.append(indent("Default: ``%s``" % dvr))
              lines.append("")
  
          help = trait.help or "No description"
          lines.append(indent(dedent(help)))
  
          # Blank line
          lines.append("")
  
      return "\n".join(lines)
  
imports: from __future__ import annotations
  import logging
  import typing
  from copy import deepcopy
  from textwrap import dedent
  from traitlets.traitlets import Any, Container, Dict, HasTraits, Instance, TraitType, default, observe, observe_compat, validate
  from traitlets.utils import warnings
  from traitlets.utils.bunch import Bunch
  from traitlets.utils.text import indent, wrap_paragraphs
  from .loader import Config, DeferredConfig, LazyConfigValue, _is_section_key
label_desc: Use image node_id 12 for calling the Configurable obj's underlying member method code with example usage: obj.class_config_rst_doc(cls) and returns: str