pub struct EngineConfig {
pub node: Option<String>,
pub name: Option<EntryId>,
pub provider_type: StreamType,
}
Expand description
Provider configuration
Fields§
§node: Option<String>
Node where connect the provider
name: Option<EntryId>
The name of the provider
provider_type: StreamType
The type of the provider
Implementations§
Source§impl EngineConfig
impl EngineConfig
Sourcepub fn new(provider_type: StreamType) -> Self
pub fn new(provider_type: StreamType) -> Self
Creates a new EngineConfig
of the specified type.
Source§impl EngineConfig
impl EngineConfig
Sourcepub fn is_node_specified(&self) -> bool
pub fn is_node_specified(&self) -> bool
Returns true
if node explicitly specified.
Sourcepub fn provider_name(&self) -> EntryId
pub fn provider_name(&self) -> EntryId
Name of the provider
Sourcepub fn provider_type(&self) -> StreamType
pub fn provider_type(&self) -> StreamType
The type of the provider
Trait Implementations§
Source§impl Clone for EngineConfig
impl Clone for EngineConfig
Source§fn clone(&self) -> EngineConfig
fn clone(&self) -> EngineConfig
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 EngineConfig
impl Debug for EngineConfig
Source§impl<'de> Deserialize<'de> for EngineConfig
impl<'de> Deserialize<'de> for EngineConfig
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
Auto Trait Implementations§
impl Freeze for EngineConfig
impl RefUnwindSafe for EngineConfig
impl Send for EngineConfig
impl Sync for EngineConfig
impl Unpin for EngineConfig
impl UnwindSafe for EngineConfig
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