pub struct PlatformBootstrapProviderBuilder { /* private fields */ }Expand description
Builder for PlatformBootstrapProvider
§Example
use drasi_bootstrap_platform::PlatformBootstrapProvider;
let provider = PlatformBootstrapProvider::builder()
.with_query_api_url("http://remote-drasi:8080")
.with_timeout_seconds(600)
.build()
.expect("Failed to create platform bootstrap provider");Implementations§
Source§impl PlatformBootstrapProviderBuilder
impl PlatformBootstrapProviderBuilder
Sourcepub fn with_query_api_url(self, url: impl Into<String>) -> Self
pub fn with_query_api_url(self, url: impl Into<String>) -> Self
Set the Query API URL (required)
Sourcepub fn with_timeout_seconds(self, seconds: u64) -> Self
pub fn with_timeout_seconds(self, seconds: u64) -> Self
Set the timeout in seconds (default: 300)
Sourcepub fn build(self) -> Result<PlatformBootstrapProvider>
pub fn build(self) -> Result<PlatformBootstrapProvider>
Build the PlatformBootstrapProvider
Returns an error if query_api_url is not set or is invalid
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PlatformBootstrapProviderBuilder
impl RefUnwindSafe for PlatformBootstrapProviderBuilder
impl Send for PlatformBootstrapProviderBuilder
impl Sync for PlatformBootstrapProviderBuilder
impl Unpin for PlatformBootstrapProviderBuilder
impl UnsafeUnpin for PlatformBootstrapProviderBuilder
impl UnwindSafe for PlatformBootstrapProviderBuilder
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