pub struct LinearClientBuilder<'a> { /* private fields */ }
Expand description
A builder for a Linear client.
Implementations§
Source§impl<'a> LinearClientBuilder<'a>
impl<'a> LinearClientBuilder<'a>
Sourcepub fn new(key: &'a ApiKey) -> Self
pub fn new(key: &'a ApiKey) -> Self
Returns a new LinearClientBuilder
using the provided API key.
Sourcepub fn base_url(
self,
base_url: &'a str,
) -> Result<LinearClientBuilder<'_>, ParseError>
pub fn base_url( self, base_url: &'a str, ) -> Result<LinearClientBuilder<'_>, ParseError>
Sets the base URL of the Linear API that the client should point to.
Sourcepub fn build(self) -> LinearClient
pub fn build(self) -> LinearClient
Consumes the builder and returns the constructed client.
Auto Trait Implementations§
impl<'a> Freeze for LinearClientBuilder<'a>
impl<'a> RefUnwindSafe for LinearClientBuilder<'a>
impl<'a> Send for LinearClientBuilder<'a>
impl<'a> Sync for LinearClientBuilder<'a>
impl<'a> Unpin for LinearClientBuilder<'a>
impl<'a> UnwindSafe for LinearClientBuilder<'a>
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