serialize_once_lock

Function serialize_once_lock 

Source
fn serialize_once_lock<S>(
    value: &OnceLock<Address>,
    serializer: S,
) -> Result<S::Ok, S::Error>
where S: Serializer,
Available on crate feature serde only.
Expand description

Helper function to serialize a OnceLock as an Option if it’s initialized.