pub struct WsJsonSourceSpec {
pub name: Cow<'static, str>,
pub url: Cow<'static, str>,
pub subscribe_message: Option<Cow<'static, [u8]>>,
pub schema: Vec<Field>,
pub event_time_key: Cow<'static, str>,
pub emit_mode: EmitMode,
}Expand description
Connector source specification for a WebSocket-JSON live feed.
Fields§
§name: Cow<'static, str>§url: Cow<'static, str>§subscribe_message: Option<Cow<'static, [u8]>>§schema: Vec<Field>§event_time_key: Cow<'static, str>§emit_mode: EmitModeImplementations§
Source§impl WsJsonSourceSpec
impl WsJsonSourceSpec
pub fn new( name: impl Into<Cow<'static, str>>, url: impl Into<Cow<'static, str>>, event_time_key: impl Into<Cow<'static, str>>, ) -> Self
pub fn schema(self, schema: Vec<Field>) -> Self
pub fn subscribe_message(self, msg: impl Into<Cow<'static, [u8]>>) -> Self
pub fn emit_mode(self, mode: EmitMode) -> Self
pub fn validate(&self) -> Result<(), String>
Trait Implementations§
Source§impl Clone for WsJsonSourceSpec
impl Clone for WsJsonSourceSpec
Source§fn clone(&self) -> WsJsonSourceSpec
fn clone(&self) -> WsJsonSourceSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WsJsonSourceSpec
impl RefUnwindSafe for WsJsonSourceSpec
impl Send for WsJsonSourceSpec
impl Sync for WsJsonSourceSpec
impl Unpin for WsJsonSourceSpec
impl UnsafeUnpin for WsJsonSourceSpec
impl UnwindSafe for WsJsonSourceSpec
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