pub struct DataConnectService { /* private fields */ }Expand description
Primary interface for Data Connect operations.
Implementations§
Source§impl DataConnectService
impl DataConnectService
Sourcepub fn app(&self) -> &FirebaseApp
pub fn app(&self) -> &FirebaseApp
Returns the Firebase app associated with this service.
Sourcepub fn options(&self) -> DataConnectOptions
pub fn options(&self) -> DataConnectOptions
Returns the fully qualified connector options.
Sourcepub fn set_generated_sdk_mode(&self, enabled: bool)
pub fn set_generated_sdk_mode(&self, enabled: bool)
Marks this instance as being used by a generated SDK, updating telemetry headers.
Sourcepub fn set_caller_sdk_type(&self, caller: CallerSdkType)
pub fn set_caller_sdk_type(&self, caller: CallerSdkType)
Updates the caller SDK type for telemetry purposes.
Sourcepub async fn query_runtime(&self) -> DataConnectResult<DataConnectQueryRuntime>
pub async fn query_runtime(&self) -> DataConnectResult<DataConnectQueryRuntime>
Builds a DataConnectQueryRuntime that keeps the query observer state alive for as long
as the handle is held. Dropping the runtime (or calling DataConnectQueryRuntime::close)
releases the cached manager so a future runtime can start fresh.
Sourcepub fn connect_emulator(
&self,
host: &str,
port: Option<u16>,
ssl_enabled: bool,
) -> DataConnectResult<()>
pub fn connect_emulator( &self, host: &str, port: Option<u16>, ssl_enabled: bool, ) -> DataConnectResult<()>
Routes subsequent requests to the specified emulator endpoint.
Trait Implementations§
Source§impl Clone for DataConnectService
impl Clone for DataConnectService
Source§fn clone(&self) -> DataConnectService
fn clone(&self) -> DataConnectService
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 moreAuto Trait Implementations§
impl Freeze for DataConnectService
impl !RefUnwindSafe for DataConnectService
impl Send for DataConnectService
impl Sync for DataConnectService
impl Unpin for DataConnectService
impl !UnwindSafe for DataConnectService
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