pub struct CreateGrantRequestBuilder { /* private fields */ }Expand description
Builder for CreateGrantRequest.
Implementations§
Source§impl CreateGrantRequestBuilder
impl CreateGrantRequestBuilder
Sourcepub fn settings(self, settings: GrantSettings) -> Self
pub fn settings(self, settings: GrantSettings) -> Self
Set grant settings (OAuth token or custom auth).
Sourcepub fn access_token(self, token: String) -> Self
pub fn access_token(self, token: String) -> Self
Set access token (shorthand for OAuth token).
Sourcepub fn custom_auth(self, auth: CustomAuthSettings) -> Self
pub fn custom_auth(self, auth: CustomAuthSettings) -> Self
Set custom authentication settings.
Sourcepub fn grant_status(self, status: GrantStatus) -> Self
pub fn grant_status(self, status: GrantStatus) -> Self
Set grant status.
Sourcepub fn build(self) -> CreateGrantRequest
pub fn build(self) -> CreateGrantRequest
Trait Implementations§
Source§impl Clone for CreateGrantRequestBuilder
impl Clone for CreateGrantRequestBuilder
Source§fn clone(&self) -> CreateGrantRequestBuilder
fn clone(&self) -> CreateGrantRequestBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CreateGrantRequestBuilder
impl RefUnwindSafe for CreateGrantRequestBuilder
impl Send for CreateGrantRequestBuilder
impl Sync for CreateGrantRequestBuilder
impl Unpin for CreateGrantRequestBuilder
impl UnsafeUnpin for CreateGrantRequestBuilder
impl UnwindSafe for CreateGrantRequestBuilder
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