pub struct CreateTokenRequest {
pub operator_email: String,
pub operator_password: String,
pub agent_id: AgentId,
}Expand description
Request a bearer token for an agent (M2M flow).
Fields§
§operator_email: String§operator_password: String§agent_id: AgentIdThe agent to mint a token for.
Wire-compatible with the String this used to be: serde
serializes a newtype struct transparently, so it is still a JSON
string. It simply stops accepting strings that are not UUIDs,
which the server rejected anyway — one parse further in.
Trait Implementations§
Source§impl Debug for CreateTokenRequest
impl Debug for CreateTokenRequest
Source§impl<'de> Deserialize<'de> for CreateTokenRequest
impl<'de> Deserialize<'de> for CreateTokenRequest
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 CreateTokenRequest
impl RefUnwindSafe for CreateTokenRequest
impl Send for CreateTokenRequest
impl Sync for CreateTokenRequest
impl Unpin for CreateTokenRequest
impl UnsafeUnpin for CreateTokenRequest
impl UnwindSafe for CreateTokenRequest
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