// 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 *Claims) SetBSON(raw bson.Raw) error {
	if o == nil {
		return nil
	}
	s := &mongoAttributesClaims{}
	if err := raw.Unmarshal(s); err != nil {
		return err
	}
	o.ID = s.ID.Hex()
	o.Content = s.Content
	o.FirstSeen = s.FirstSeen
	o.Hash = s.Hash
	o.LastSeen = s.LastSeen
	o.MigrationsLog = s.MigrationsLog
	o.Namespace = s.Namespace
	o.ZHash = s.ZHash
	o.Zone = s.Zone
	return nil
}
func ( o * Claims ) SetBSON ( raw bson . Raw ) error { if o == nil { return nil } s := & mongoAttributesClaims { } if err := raw . Unmarshal ( s ) ; err != nil { return err } o . ID = s . ID . Hex ( ) o . Content = s . Content o . FirstSeen = s . FirstSeen o . Hash = s . Hash o . LastSeen = s . LastSeen o . MigrationsLog = s . MigrationsLog o . Namespace = s . Namespace o . ZHash = s . ZHash o . Zone = s . Zone return nil }
SetBSON implements the bson marshaling interface.
SetBSON implements the bson marshaling interface .