pub struct StreamCallRequest {
pub event_type: String,
pub timestamp: i64,
pub stream_name: String,
pub group_id: String,
pub id: Option<String>,
pub event: StreamEventDetail,
}Expand description
Handler input for stream triggers, fired when an item changes
via stream::set, stream::update, or stream::delete.
Fields§
§event_type: StringAlways "stream".
timestamp: i64Unix timestamp (milliseconds) of the event.
stream_name: StringThe stream where the change occurred.
group_id: StringThe group where the change occurred.
id: Option<String>The item ID that changed.
event: StreamEventDetailThe event detail containing mutation type and data.
Trait Implementations§
Source§impl Clone for StreamCallRequest
impl Clone for StreamCallRequest
Source§fn clone(&self) -> StreamCallRequest
fn clone(&self) -> StreamCallRequest
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 moreSource§impl Debug for StreamCallRequest
impl Debug for StreamCallRequest
Source§impl<'de> Deserialize<'de> for StreamCallRequest
impl<'de> Deserialize<'de> for StreamCallRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for StreamCallRequest
impl JsonSchema for StreamCallRequest
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for StreamCallRequest
impl RefUnwindSafe for StreamCallRequest
impl Send for StreamCallRequest
impl Sync for StreamCallRequest
impl Unpin for StreamCallRequest
impl UnsafeUnpin for StreamCallRequest
impl UnwindSafe for StreamCallRequest
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