pub struct FetchAuthRequest {
pub bot_id: String,
pub time: u64,
pub nonce: String,
pub signature: String,
pub bind_source: BindSource,
}Fields§
§bot_id: String§time: u64§nonce: String§signature: String§bind_source: BindSourceImplementations§
Source§impl FetchAuthRequest
impl FetchAuthRequest
Sourcepub fn build(
bot: &BotCredential,
bind_source: BindSource,
) -> Result<Self, AuthError>
pub fn build( bot: &BotCredential, bind_source: BindSource, ) -> Result<Self, AuthError>
Build a signed request from the given bot credentials
Trait Implementations§
Source§impl Clone for FetchAuthRequest
impl Clone for FetchAuthRequest
Source§fn clone(&self) -> FetchAuthRequest
fn clone(&self) -> FetchAuthRequest
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 moreSource§impl Debug for FetchAuthRequest
impl Debug for FetchAuthRequest
Auto Trait Implementations§
impl Freeze for FetchAuthRequest
impl RefUnwindSafe for FetchAuthRequest
impl Send for FetchAuthRequest
impl Sync for FetchAuthRequest
impl Unpin for FetchAuthRequest
impl UnsafeUnpin for FetchAuthRequest
impl UnwindSafe for FetchAuthRequest
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