pub struct SseEventParams {
pub account_id: Option<String>,
pub since: Option<String>,
pub until: Option<String>,
}Expand description
Parameters for SSE event stream.
Fields§
§account_id: Option<String>Filter by account ID.
since: Option<String>Start timestamp.
until: Option<String>Until timestamp.
Implementations§
Source§impl SseEventParams
impl SseEventParams
Sourcepub fn new() -> SseEventParams
pub fn new() -> SseEventParams
Create new empty parameters.
Sourcepub fn account_id(self, account_id: &str) -> SseEventParams
pub fn account_id(self, account_id: &str) -> SseEventParams
Filter by account ID.
Sourcepub fn since(self, since: &str) -> SseEventParams
pub fn since(self, since: &str) -> SseEventParams
Set since timestamp.
Sourcepub fn until(self, until: &str) -> SseEventParams
pub fn until(self, until: &str) -> SseEventParams
Set until timestamp.
Trait Implementations§
Source§impl Clone for SseEventParams
impl Clone for SseEventParams
Source§fn clone(&self) -> SseEventParams
fn clone(&self) -> SseEventParams
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 SseEventParams
impl Debug for SseEventParams
Source§impl Default for SseEventParams
impl Default for SseEventParams
Source§fn default() -> SseEventParams
fn default() -> SseEventParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SseEventParams
impl<'de> Deserialize<'de> for SseEventParams
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SseEventParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SseEventParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SseEventParams
impl Serialize for SseEventParams
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for SseEventParams
impl RefUnwindSafe for SseEventParams
impl Send for SseEventParams
impl Sync for SseEventParams
impl Unpin for SseEventParams
impl UnwindSafe for SseEventParams
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