pub struct ShieldStreamEvent {
pub type: String,
pub data: HashMap<String, Value>,
}Expand description
A single server-sent event from POST /v1/guard/stream.
Fields§
§type: StringEvent type: "detection", "decision", "error", or "done".
data: HashMap<String, Value>Parsed JSON payload.
Trait Implementations§
Source§impl Clone for ShieldStreamEvent
impl Clone for ShieldStreamEvent
Source§fn clone(&self) -> ShieldStreamEvent
fn clone(&self) -> ShieldStreamEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ShieldStreamEvent
impl RefUnwindSafe for ShieldStreamEvent
impl Send for ShieldStreamEvent
impl Sync for ShieldStreamEvent
impl Unpin for ShieldStreamEvent
impl UnsafeUnpin for ShieldStreamEvent
impl UnwindSafe for ShieldStreamEvent
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