pub enum Audience<'a> {
All,
Only(&'a [&'a str]),
}Expand description
Who the filtered body is for.
Variants§
All
Every region survives; only the markers are removed.
For rendering a document as its author sees it — an editor preview, a local build with no audience chosen. Never for a publish.
Only(&'a [&'a str])
A region survives when it declares at least one of these.
An empty slice keeps nothing, which is the honest reading of “for no audience” and matches the gate: a document declaring nothing is visible to no one.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Audience<'a>
impl<'a> RefUnwindSafe for Audience<'a>
impl<'a> Send for Audience<'a>
impl<'a> Sync for Audience<'a>
impl<'a> Unpin for Audience<'a>
impl<'a> UnsafeUnpin for Audience<'a>
impl<'a> UnwindSafe for Audience<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more