Function |from_option_number_u64

json/value::|from_option_number_u64


Usage

|from_option_number_u64(value)

Generics

◻ U: ToU64

Parameters

↳ value: Option<U>

Return

Json


Makes a JSON numeric or null value from option of convertible u64 value.

If value is some number, it is turned into JSON, else if value is none, null JSON value is returned.