pub struct StreamingEndpoint {
pub operation_id: String,
pub path: String,
pub http_method: HttpMethod,
pub stream_parameter: String,
pub query_parameters: Vec<QueryParameter>,
pub event_union_type: String,
pub content_type: Option<String>,
pub base_url: Option<String>,
pub event_flow: EventFlow,
pub required_headers: Vec<(String, String)>,
pub auth_header: Option<AuthHeader>,
pub optional_headers: Vec<OptionalHeader>,
}Expand description
Configuration for a single streaming endpoint
Fields§
§operation_id: StringOpenAPI operation ID that supports streaming
path: StringURL path for the endpoint (e.g., “/global/event”)
http_method: HttpMethodHTTP method for the streaming request (default: POST)
stream_parameter: StringParameter name that controls streaming (e.g., “stream”), empty for always-streaming endpoints Only used for POST requests
query_parameters: Vec<QueryParameter>Query parameters for GET requests (e.g., session_id)
event_union_type: StringName of the union type that represents streaming events
content_type: Option<String>Content type for streaming responses (e.g., “text/event-stream”)
base_url: Option<String>Base URL for the API (optional override)
event_flow: EventFlowEvent flow pattern for this endpoint
required_headers: Vec<(String, String)>Required headers for streaming requests
auth_header: Option<AuthHeader>Authentication header configuration
optional_headers: Vec<OptionalHeader>Optional headers that can be set dynamically (e.g., beta features)
Trait Implementations§
Source§impl Clone for StreamingEndpoint
impl Clone for StreamingEndpoint
Source§fn clone(&self) -> StreamingEndpoint
fn clone(&self) -> StreamingEndpoint
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 StreamingEndpoint
impl Debug for StreamingEndpoint
Auto Trait Implementations§
impl Freeze for StreamingEndpoint
impl RefUnwindSafe for StreamingEndpoint
impl Send for StreamingEndpoint
impl Sync for StreamingEndpoint
impl Unpin for StreamingEndpoint
impl UnwindSafe for StreamingEndpoint
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