pub struct Builder { /* private fields */ }Expand description
Builder for Copilot clients.
Implementations§
Source§impl Builder
impl Builder
Sourcepub fn editor_version(self, version: impl Into<String>) -> Self
pub fn editor_version(self, version: impl Into<String>) -> Self
Set the editor version header.
Sourcepub fn integration_id(self, id: impl Into<String>) -> Self
pub fn integration_id(self, id: impl Into<String>) -> Self
Set the integration ID header.
Sourcepub fn oauth_token(self, token: impl Into<String>) -> Self
pub fn oauth_token(self, token: impl Into<String>) -> Self
Provide an OAuth token so the client can refresh session tokens on 401s.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnsafeUnpin for Builder
impl UnwindSafe for Builder
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