pub fn insert_custom_property<V>(
        mut self,
        key: impl AsRef<str>,
        value: V,
    ) -> StreamMetadataBuilder
    where
        V: Serialize,
    {
        let serialized = serde_json::to_value(value).unwrap();
        let _ = self.properties.insert(key.as_ref().to_string(), serialized);

        self
    }
/// Adds user-defined property in the stream metadata.
Adds user-defined property in the stream metadata.
Adds user - defined property in the stream metadata .
pub fn insert_custom_property<V>(
        mut self,
        key: impl AsRef<str>,
        value: V,
    ) -> StreamMetadataBuilder
    where
        V: Serialize,
    {
        let serialized = serde_json::to_value(value).unwrap();
        let _ = self.properties.insert(key.as_ref().to_string(), serialized);
        self
    }
pub fn insert_custom_property < V > ( mut self , key : impl AsRef < str > , value : V , ) -> StreamMetadataBuilder where V : Serialize , { let serialized = serde_json :: to_value ( value ) . unwrap ( ) ; let _ = self . properties . insert ( key . as_ref ( ) . to_string ( ) , serialized ) ; self }
Adds user-defined property in the stream metadata.
Adds user - defined property in the stream metadata .
mut self
key
impl AsRef<str>
value
V
mut self
key
impl AsRef<str>
value
V