Function hive_pubsub::backend::mongo::publish[][src]

pub async fn publish<K, V, D>(
    pubsub: &MongodbPubSub<K, V, D>,
    topic: &V,
    data: D
) -> Result<(), String> where
    K: Clone + Eq + Hash,
    V: Clone + Eq + Hash + DeserializeOwned + Serialize,
    D: DeserializeOwned + Serialize
This is supported on crate feature mongo-backend only.