parameters: (self, items, opts_name='opts', generate_rst=True,
                   generate_code=True, allow_extra=True, **defaults)
docstring: Define an options struct.
  
          - items: List of pairs: (optionName, info)
          - opts_name: Name of the const bson_t *opts parameter
          - allow_extra: Whether to allow unrecognized options
          - defaults: Initial values for options
docstring_summary: Define an options struct.
docstring_tokens: Define an options struct .
function: def __init__(self, items, opts_name='opts', generate_rst=True,
                   generate_code=True, allow_extra=True, **defaults):
          """Define an options struct.
  
          - items: List of pairs: (optionName, info)
          - opts_name: Name of the const bson_t *opts parameter
          - allow_extra: Whether to allow unrecognized options
          - defaults: Initial values for options
          """
          OrderedDict.__init__(self, list(flatten(items)))
          self.is_shared = False
          self.opts_name = opts_name
          self.generate_rst = generate_rst
          self.generate_code = generate_code
          self.allow_extra = allow_extra
          self.defaults = defaults
function_tokens: def __init__ ( self , items , opts_name = 'opts' , generate_rst = True , generate_code = True , allow_extra = True , * * defaults ) : OrderedDict . __init__ ( self , list ( flatten ( items ) ) ) self . is_shared = False self . opts_name = opts_name self . generate_rst = generate_rst self . generate_code = generate_code self . allow_extra = allow_extra self . defaults = defaults