Struct PlaintextSign

Source
pub struct PlaintextSign<W = String> { /* private fields */ }
Expand description

A Sign implementation that just returns the signing key used to construct it.

Trait Implementations§

Source§

impl<W: Clone> Clone for PlaintextSign<W>

Source§

fn clone(&self) -> PlaintextSign<W>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<W: Debug> Debug for PlaintextSign<W>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<W> Sign for PlaintextSign<W>
where W: Display + Write,

Source§

type Signature = W

The URL-encoded representation of oauth_signature string the algorithm produces.
Source§

fn get_signature_method_name(&self) -> &'static str

Returns the oauth_signature_method string for the signature method associated with the algorithm.
Source§

fn request_method(&mut self, _method: &str)

Feeds self with the HTTP request method part of the signature base string.
Source§

fn uri<T>(&mut self, _uri: T)

Feeds self with the base string URI part of the signature base string.
Source§

fn parameter<V>(&mut self, _key: &str, _value: V)

Feeds self with a key-value parameter pair of the signature base string. Read more
Source§

fn delimiter(&mut self)

Feeds self with the delimiter (%26) between parameters.
Source§

fn end(self) -> W

Finalizes the signing process and returns the resulting signature.
Source§

fn callback<V: Display>(&mut self, value: V)

Feeds self with the oauth_callback parameter part of the signature base string. Read more
Source§

fn consumer_key<V: Display>(&mut self, value: V)

Feeds self with the oauth_consumer_key parameter part of the signature base string. Read more
Source§

fn nonce<V: Display>(&mut self, value: V)

Feeds self with the oauth_nonce parameter part of the signature base string. Read more
Source§

fn use_nonce(&self) -> bool

Whether the signature method uses the oauth_nonce parameter. Read more
Source§

fn signature_method(&mut self)

Feeds self with the oauth_signature_method parameter part of the signature base string. Read more
Source§

fn timestamp(&mut self, value: u64)

Feeds self with the oauth_timestamp parameter part of the signature base string. Read more
Source§

fn use_timestamp(&self) -> bool

Whether the signature method uses the oauth_nonce parameter. Read more
Source§

fn token<V: Display>(&mut self, value: V)

Feeds self with the oauth_token parameter part of the signature base string. Read more
Source§

fn verifier<V: Display>(&mut self, value: V)

Feeds self with the oauth_verifier parameter part of the signature base string. Read more
Source§

fn version(&mut self)

Feeds self with the oauth_version parameter part of the signature base string. Read more

Auto Trait Implementations§

§

impl<W> Freeze for PlaintextSign<W>
where W: Freeze,

§

impl<W> RefUnwindSafe for PlaintextSign<W>
where W: RefUnwindSafe,

§

impl<W> Send for PlaintextSign<W>
where W: Send,

§

impl<W> Sync for PlaintextSign<W>
where W: Sync,

§

impl<W> Unpin for PlaintextSign<W>
where W: Unpin,

§

impl<W> UnwindSafe for PlaintextSign<W>
where W: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V