pub fn serialize<S>(value: &Vec<u8>, serializer: S) -> Result<S::Ok, S::Error>
where
    S: Serializer,
{
    base64::encode(value).serialize(serializer)
}
// This is a serializer for Vec<u8>, it is required to be of that type
This is a serializer for Vec, it is required to be of that type
This is a serializer for Vec it is required to be of that type
pub fn serialize<S>(value: &Vec<u8>, serializer: S) -> Result<S::Ok, S::Error>
where
    S: Serializer,
{
    base64::encode(value).serialize(serializer)
}
pub fn serialize < S > ( value : & Vec < u8 > , serializer : S ) -> Result < S :: Ok , S :: Error > where S : Serializer , { base64 :: encode ( value ) . serialize ( serializer ) }
This is a serializer for Vec<u8>, it is required to be of that type
This is a serializer for Vec<u8 > it is required to be of that type
value
&Vec<u8>
serializer
S