pub struct CreateAuthCodeRequestBuilder { /* private fields */ }Expand description
Builder for CreateAuthCodeRequest.
Implementations§
Source§impl CreateAuthCodeRequestBuilder
impl CreateAuthCodeRequestBuilder
pub fn callback_url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn code_challenge<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn code_challenge_method(&mut self, value: CodeChallengeMethod) -> &mut Self
pub fn limit(&mut self, value: f64) -> &mut Self
pub fn expires_at<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn key_label<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn usage_limit_type(&mut self, value: UsageLimitType) -> &mut Self
pub fn spawn_agent<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn spawn_cloud<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn workspace_id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn build(&self) -> Result<CreateAuthCodeRequest, OpenRouterError>
pub fn build(&self) -> Result<CreateAuthCodeRequest, OpenRouterError>
Trait Implementations§
Source§impl Clone for CreateAuthCodeRequestBuilder
impl Clone for CreateAuthCodeRequestBuilder
Source§fn clone(&self) -> CreateAuthCodeRequestBuilder
fn clone(&self) -> CreateAuthCodeRequestBuilder
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 CreateAuthCodeRequestBuilder
impl RefUnwindSafe for CreateAuthCodeRequestBuilder
impl Send for CreateAuthCodeRequestBuilder
impl Sync for CreateAuthCodeRequestBuilder
impl Unpin for CreateAuthCodeRequestBuilder
impl UnsafeUnpin for CreateAuthCodeRequestBuilder
impl UnwindSafe for CreateAuthCodeRequestBuilder
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