Struct TelnyxBuilder
pub struct TelnyxBuilder { /* private fields */ }Expand description
Typed builder for TelnyxModelProvider.
Only alias is required; api_key falls back to the
TELNYX_API_KEY environment variable.
Implementations§
Source§impl TelnyxBuilder
impl TelnyxBuilder
Sourcepub fn api_key(self, api_key: Option<&str>) -> TelnyxBuilder
pub fn api_key(self, api_key: Option<&str>) -> TelnyxBuilder
Set an explicit Telnyx API key. When unset, build() reads
TELNYX_API_KEY from the environment via resolve_telnyx_api_key.
pub fn build(self) -> TelnyxModelProvider
Auto Trait Implementations§
impl Freeze for TelnyxBuilder
impl RefUnwindSafe for TelnyxBuilder
impl Send for TelnyxBuilder
impl Sync for TelnyxBuilder
impl Unpin for TelnyxBuilder
impl UnsafeUnpin for TelnyxBuilder
impl UnwindSafe for TelnyxBuilder
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more