pub struct ApproveRequest {
pub client_id: OAuthClientId,
pub redirect_uri: String,
pub operator_email: String,
pub operator_password: Secret,
pub agent_id: AgentId,
pub scope: Option<String>,
pub state: Option<String>,
pub code_challenge: String,
pub code_challenge_method: String,
}Expand description
A programmatic authorization approval (POST /oauth/approve): the
operator authenticates and picks the agent to authorize.
Fields§
§client_id: OAuthClientId§redirect_uri: String§operator_email: String§operator_password: Secret§agent_id: AgentId§scope: Option<String>§state: Option<String>§code_challenge: String§code_challenge_method: StringTrait Implementations§
Source§impl Clone for ApproveRequest
impl Clone for ApproveRequest
Source§impl Debug for ApproveRequest
impl Debug for ApproveRequest
Source§impl<'de> Deserialize<'de> for ApproveRequest
impl<'de> Deserialize<'de> for ApproveRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ApproveRequest
impl RefUnwindSafe for ApproveRequest
impl Send for ApproveRequest
impl Sync for ApproveRequest
impl Unpin for ApproveRequest
impl UnsafeUnpin for ApproveRequest
impl UnwindSafe for ApproveRequest
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