pub(crate) struct SendAccessTokenRequestPayload {
pub(crate) client_id: SendAccessClientType,
pub(crate) grant_type: GrantType,
pub(crate) scope: Scope,
pub(crate) send_id: String,
pub(crate) credentials: SendAccessTokenPayloadCredentials,
}Expand description
Represents the actual request payload for requesting a send access token.
It converts the SendAccessTokenRequest into a format suitable for sending to the API.
Fields§
§client_id: SendAccessClientTypeThe client ID for the send access client.
grant_type: GrantTypeThe grant type for the send access token request. SendAccess is a custom grant type for send access tokens. It is used to differentiate send access requests from other OAuth2 flows.
scope: ScopeThe scope for the send access token request. This is set to “api.send” to indicate that the token is for send access. It allows the token to be used for accessing send-related resources.
send_id: StringThe ID of the send for which the access token is being requested.
credentials: SendAccessTokenPayloadCredentialsThe credentials used for the send access request. This can be password, email, email OTP, or anonymous.
Trait Implementations§
Source§impl From<SendAccessTokenRequest> for SendAccessTokenRequestPayload
Implement a way to convert from our request model to the payload model
impl From<SendAccessTokenRequest> for SendAccessTokenRequestPayload
Implement a way to convert from our request model to the payload model
Source§fn from(request: SendAccessTokenRequest) -> Self
fn from(request: SendAccessTokenRequest) -> Self
Auto Trait Implementations§
impl Freeze for SendAccessTokenRequestPayload
impl RefUnwindSafe for SendAccessTokenRequestPayload
impl Send for SendAccessTokenRequestPayload
impl Sync for SendAccessTokenRequestPayload
impl Unpin for SendAccessTokenRequestPayload
impl UnwindSafe for SendAccessTokenRequestPayload
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Arc<> Read more§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more