pub struct ExchangeTokenForJobRequest {
pub subject_token: String,
pub purpose: String,
pub job_id: String,
pub ttl_seconds: i64,
}Expand description
What exchange_token_for_job asks for.
Fields§
§subject_token: StringThe user’s current access token (Bearer prefix optional).
purpose: StringWhy the job acts for the user, e.g. "export"; signed into the token.
job_id: StringThe job the token is for; at most 200 bytes.
ttl_seconds: i64The requested lifetime in seconds; 0 asks for the broker’s maximum.
Trait Implementations§
Source§impl Clone for ExchangeTokenForJobRequest
impl Clone for ExchangeTokenForJobRequest
Source§impl Debug for ExchangeTokenForJobRequest
Hand-written rather than derived: a derived Debug would print the user’s
access token.
impl Debug for ExchangeTokenForJobRequest
Hand-written rather than derived: a derived Debug would print the user’s
access token.
Auto Trait Implementations§
impl Forget for ExchangeTokenForJobRequest
impl Freeze for ExchangeTokenForJobRequest
impl Move for ExchangeTokenForJobRequest
impl RefUnwindSafe for ExchangeTokenForJobRequest
impl Send for ExchangeTokenForJobRequest
impl Sync for ExchangeTokenForJobRequest
impl Unpin for ExchangeTokenForJobRequest
impl UnsafeUnpin for ExchangeTokenForJobRequest
impl UnwindSafe for ExchangeTokenForJobRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request