// SetBSON implements the bson marshaling interface.
// This is used to transparently convert ID to MongoDBID as ObectID.
SetBSON implements the bson marshaling interface.
This is used to transparently convert ID to MongoDBID as ObectID.
// SetBSON implements the bson marshaling interface . // This is used to transparently convert ID to MongoDBID as ObectID .
func (o *EnforcerTraceReport) SetBSON(raw bson.Raw) error {
	if o == nil {
		return nil
	}
	s := &mongoAttributesEnforcerTraceReport{}
	if err := raw.Unmarshal(s); err != nil {
		return err
	}
	o.EnforcerID = s.EnforcerID
	o.EnforcerNamespace = s.EnforcerNamespace
	o.Namespace = s.Namespace
	o.PuID = s.PuID
	o.Records = s.Records
	return nil
}
func ( o * EnforcerTraceReport ) SetBSON ( raw bson . Raw ) error { if o == nil { return nil } s := & mongoAttributesEnforcerTraceReport { } if err := raw . Unmarshal ( s ) ; err != nil { return err } o . EnforcerID = s . EnforcerID o . EnforcerNamespace = s . EnforcerNamespace o . Namespace = s . Namespace o . PuID = s . PuID o . Records = s . Records return nil }
SetBSON implements the bson marshaling interface.
SetBSON implements the bson marshaling interface .