pub fn publishes_without_credentials<C, Policy>(policy: &Policy, secret: &str)where
C: ConnectedBroker,
Policy: PublishPolicy<C>,Expand description
Fails when a publish policy’s bindings carry secret.
A policy describes the positions it is bound on (a reply, an Out
slot, a dead-letter destination) in the generated document, which is published and shared.
Configure policy the way a deployment would, with a password you pass as secret, and this
scans its channel, operation and message bindings and its reply address location.
§Examples
use ruststream::conformance::message_shape;
use ruststream::memory::{ConnectedMemoryBroker, MemoryPublish};
message_shape::publishes_without_credentials::<ConnectedMemoryBroker, _>(
&MemoryPublish,
"hunter2",
);§Panics
Panics when secret appears in any binding or the reply address location, and when secret
is empty (a scan for nothing passes for the wrong reason).