func NewCharmRelation(cr charm.Relation) CharmRelation {
	return CharmRelation{
		Name:      cr.Name,
		Role:      string(cr.Role),
		Interface: cr.Interface,
		Optional:  cr.Optional,
		Limit:     cr.Limit,
		Scope:     string(cr.Scope),
	}
}
// NewCharmRelation creates a new local CharmRelation structure from  the
// charm.Relation structure. NOTE: when we update the database to not store a
// charm.Relation directly in the database, this method should take the state
// structure type.
NewCharmRelation creates a new local CharmRelation structure from  the
charm.Relation structure. NOTE: when we update the database to not store a
charm.Relation directly in the database, this method should take the state
structure type.
// NewCharmRelation creates a new local CharmRelation structure from the // charm . Relation structure . NOTE : when we update the database to not store a // charm . Relation directly in the database this method should take the state // structure type .
func NewCharmRelation(cr charm.Relation) CharmRelation {
	return CharmRelation{
		Name:      cr.Name,
		Role:      string(cr.Role),
		Interface: cr.Interface,
		Optional:  cr.Optional,
		Limit:     cr.Limit,
		Scope:     string(cr.Scope),
	}
}
func NewCharmRelation ( cr charm . Relation ) CharmRelation { return CharmRelation { Name : cr . Name , Role : string ( cr . Role ) , Interface : cr . Interface , Optional : cr . Optional , Limit : cr . Limit , Scope : string ( cr . Scope ) , } }
NewCharmRelation creates a new local CharmRelation structure from  the
charm.Relation structure.
NewCharmRelation creates a new local CharmRelation structure from the charm . Relation structure .