frostfs-api-go/v2/accounting/grpc/types.go
Alex Vanin 5f2770d522 Separate type definition in accounting/grpc
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-09-18 10:44:21 +03:00

15 lines
274 B
Go

package accounting
// SetValue sets value of the decimal number.
func (m *Decimal) SetValue(v int64) {
if m != nil {
m.Value = v
}
}
// SetPrecision sets precision of the decimal number.
func (m *Decimal) SetPrecision(v uint32) {
if m != nil {
m.Precision = v
}
}