code: func (m *Method) inheritFromATrait(r *Resource, t *Trait, dicts map[string]interface{},
  	apiDef *APIDefinition) error {
  	dicts = initTraitDicts(r, m, dicts)
  
  	m.Description = substituteParams(m.Description, t.Description, dicts)
  
  	m.Bodies.inherit(t.Bodies, dicts, m.resourceTypeName, apiDef)
  
  	m.inheritHeaders(t.Headers, dicts)
  
  	m.inheritResponses(t.Responses, dicts, apiDef)
  
  	m.inheritQueryParams(t.QueryParameters, dicts)
  
  	m.inheritProtocols(t.Protocols)
  
  	// optional bodies
  	// optional headers
  	// optional responses
  	// optional query parameters
  	return nil
  }
docs: // inherit from a trait
  // dicts is map of trait parameters values