macro_rules! b64_encode_bytes { ($data:expr) => { ... }; ($data:expr, $padding:path) => { ... }; }
Base64 encode with [bytes::Bytes] returned
bytes::Bytes
Param:
data
AsRef
padding
base64::engine::general_purpose::{}
STANDARD
STANDARD_NO_PAD
URL_SAFE
URL_SAFE_NO_PAD
b64_encode_bytes!(b"hello world");