Download crates/forge_eventsource_stream/src/event.rs from SaylorTwift/forgecode: direct link, hf CLI and curl.
- Browser
- Download file 380 Bytes
-
https://huggingface.co/SaylorTwift/forgecode/resolve/main/crates/forge_eventsource_stream/src/event.rs
- Command line
-
hf download hf://SaylorTwift/forgecode/crates/forge_eventsource_stream/src/event.rs
-
curl -L -o event.rs https://huggingface.co/SaylorTwift/forgecode/resolve/main/crates/forge_eventsource_stream/src/event.rs
380 Bytes
| use alloc::string::String; | |
| use core::time::Duration; | |
| /// An Event | |
| pub struct Event { | |
| /// The event name if given | |
| pub event: String, | |
| /// The event data | |
| pub data: String, | |
| /// The event id if given | |
| pub id: String, | |
| /// Retry duration if given | |
| pub retry: Option<Duration>, | |
| } | |