pub struct RedfishClientBuilder { /* private fields */ }Expand description
Builder for constructing a RedfishClient with custom configuration.
Implementations§
Source§impl RedfishClientBuilder
impl RedfishClientBuilder
Sourcepub fn credentials(self, username: &str, password: &str) -> Self
pub fn credentials(self, username: &str, password: &str) -> Self
Set credentials for session-based authentication.
Sourcepub fn session(self, token: &str, session_uri: &str) -> Self
pub fn session(self, token: &str, session_uri: &str) -> Self
Inject an existing session token and URI (for session persistence).
Sourcepub fn build(self) -> Result<RedfishClient>
pub fn build(self) -> Result<RedfishClient>
Build the RedfishClient.
Auto Trait Implementations§
impl Freeze for RedfishClientBuilder
impl !RefUnwindSafe for RedfishClientBuilder
impl Send for RedfishClientBuilder
impl Sync for RedfishClientBuilder
impl Unpin for RedfishClientBuilder
impl UnsafeUnpin for RedfishClientBuilder
impl !UnwindSafe for RedfishClientBuilder
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