Skip to main content

MultipartRequest

Struct MultipartRequest 

Source
pub struct MultipartRequest<P> { /* private fields */ }
Expand description

A ready-to-send Telegram request whose payload is sent using multipart/form-data.

Implementations§

Source§

impl<P> MultipartRequest<P>

Source

pub const fn new(bot: Bot, payload: P) -> MultipartRequest<P>

Trait Implementations§

Source§

impl<P> Clone for MultipartRequest<P>
where P: Clone,

Source§

fn clone(&self) -> MultipartRequest<P>

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<P> Deref for MultipartRequest<P>
where P: 'static + Payload + MultipartPayload, <P as Payload>::Output: DeserializeOwned,

Source§

type Target = P

The resulting type after dereferencing.
Source§

fn deref(&self) -> &<MultipartRequest<P> as Deref>::Target

Dereferences the value.
Source§

impl<P> DerefMut for MultipartRequest<P>
where P: 'static + Payload + MultipartPayload, <P as Payload>::Output: DeserializeOwned,

Source§

fn deref_mut(&mut self) -> &mut <MultipartRequest<P> as Deref>::Target

Mutably dereferences the value.
Source§

impl<P> HasPayload for MultipartRequest<P>
where P: Payload,

Source§

type Payload = P

The type of the payload contained.
Source§

fn payload_mut(&mut self) -> &mut <MultipartRequest<P> as HasPayload>::Payload

Gain mutable access to the underlying payload.
Source§

fn payload_ref(&self) -> &<MultipartRequest<P> as HasPayload>::Payload

Gain immutable access to the underlying payload.
Source§

fn with_payload_mut<F>(self, f: F) -> Self
where Self: Sized, F: FnOnce(&mut Self::Payload),

Update payload with a function
Source§

impl<P> IntoFuture for MultipartRequest<P>

Source§

type Output = Result<<P as Payload>::Output, RequestError>

The output that the future will produce on completion.
Source§

type IntoFuture = <MultipartRequest<P> as Request>::Send

Which kind of future are we turning this into?
Source§

fn into_future(self) -> <MultipartRequest<P> as IntoFuture>::IntoFuture

Creates a future from a value. Read more
Source§

impl<P> Request for MultipartRequest<P>

Source§

type Err = RequestError

The type of an error that may happen while sending a request to Telegram.
Source§

type Send = Send<P>

The type of the future returned by the send method.
Source§

type SendRef = SendRef<P>

A type of the future returned by the send_ref method.
Source§

fn send(self) -> <MultipartRequest<P> as Request>::Send

Send this request. Read more
Source§

fn send_ref(&self) -> <MultipartRequest<P> as Request>::SendRef

Send this request by reference. Read more
Source§

fn erase<'a>(self) -> ErasedRequest<'a, Self::Payload, Self::Err>
where Self: Sized + 'a,

Available on crate feature erased only.

Auto Trait Implementations§

§

impl<P> Freeze for MultipartRequest<P>
where P: Freeze,

§

impl<P> !RefUnwindSafe for MultipartRequest<P>

§

impl<P> Send for MultipartRequest<P>
where P: Send,

§

impl<P> Sync for MultipartRequest<P>
where P: Sync,

§

impl<P> Unpin for MultipartRequest<P>
where P: Unpin,

§

impl<P> !UnwindSafe for MultipartRequest<P>

Blanket Implementations§

Source§

impl<R> TryRngCore for R
where R: TryRng,

Source§

type Error = <R as TryRng>::Error

👎Deprecated since 0.10.0: use TryRng instead
Error type.
Source§

impl<P> AddStickerToSetSetters for P
where P: HasPayload<Payload = AddStickerToSet>,

Source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
Source§

fn name<T>(self, value: T) -> Self
where T: Into<String>,

Setter for name field.
Source§

fn sticker(self, value: InputSticker) -> Self

Setter for sticker field.
Source§

impl<P> AnswerCallbackQuerySetters for P
where P: HasPayload<Payload = AnswerCallbackQuery>,

Source§

fn callback_query_id(self, value: CallbackQueryId) -> Self

Setter for callback_query_id field.
Source§

fn text<T>(self, value: T) -> Self
where T: Into<String>,

Setter for text field.
Source§

fn show_alert(self, value: bool) -> Self

Setter for show_alert field.
Source§

fn url(self, value: Url) -> Self

Setter for url field.
Source§

fn cache_time(self, value: u32) -> Self

Setter for cache_time field.
Source§

impl<P> AnswerInlineQuerySetters for P
where P: HasPayload<Payload = AnswerInlineQuery>,

Source§

fn inline_query_id(self, value: InlineQueryId) -> Self

Setter for inline_query_id field.
Source§

fn results<T>(self, value: T) -> Self

Setter for results field.
Source§

fn cache_time(self, value: u32) -> Self

Setter for cache_time field.
Source§

fn is_personal(self, value: bool) -> Self

Setter for is_personal field.
Source§

fn next_offset<T>(self, value: T) -> Self
where T: Into<String>,

Setter for next_offset field.
Source§

fn button(self, value: InlineQueryResultsButton) -> Self

Setter for button field.
Source§

impl<P> AnswerPreCheckoutQuerySetters for P
where P: HasPayload<Payload = AnswerPreCheckoutQuery>,

Source§

fn pre_checkout_query_id(self, value: PreCheckoutQueryId) -> Self

Setter for pre_checkout_query_id field.
Source§

fn ok(self, value: bool) -> Self

Setter for ok field.
Source§

fn error_message<T>(self, value: T) -> Self
where T: Into<String>,

Setter for error_message field.
Source§

impl<P> AnswerShippingQuerySetters for P
where P: HasPayload<Payload = AnswerShippingQuery>,

Source§

fn shipping_query_id(self, value: ShippingQueryId) -> Self

Setter for shipping_query_id field.
Source§

fn ok(self, value: bool) -> Self

Setter for ok field.
Source§

fn shipping_options<T>(self, value: T) -> Self

Setter for shipping_options field.
Source§

fn error_message<T>(self, value: T) -> Self
where T: Into<String>,

Setter for error_message field.
Source§

impl<P> AnswerWebAppQuerySetters for P
where P: HasPayload<Payload = AnswerWebAppQuery>,

Source§

fn web_app_query_id<T>(self, value: T) -> Self
where T: Into<String>,

Setter for web_app_query_id field.
Source§

fn result(self, value: InlineQueryResult) -> Self

Setter for result field.
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<P> ApproveChatJoinRequestSetters for P
where P: HasPayload<Payload = ApproveChatJoinRequest>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
Source§

impl<P> ApproveSuggestedPostSetters for P
where P: HasPayload<Payload = ApproveSuggestedPost>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<ChatId>,

Setter for chat_id field.
Source§

fn message_id(self, value: MessageId) -> Self

Setter for message_id field.
Source§

fn send_date(self, value: UntilDate) -> Self

Setter for send_date field.
Source§

impl<P> BanChatMemberSetters for P
where P: HasPayload<Payload = BanChatMember>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
Source§

fn until_date<T>(self, value: T) -> Self
where T: Into<DateTime<Utc>>,

Setter for until_date field.
Source§

fn revoke_messages(self, value: bool) -> Self

Setter for revoke_messages field.
Source§

impl<P> BanChatSenderChatSetters for P
where P: HasPayload<Payload = BanChatSenderChat>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn sender_chat_id<T>(self, value: T) -> Self
where T: Into<ChatId>,

Setter for sender_chat_id field.
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<P> CloseForumTopicSetters for P
where P: HasPayload<Payload = CloseForumTopic>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
Source§

impl<P> CloseGeneralForumTopicSetters for P
where P: HasPayload<Payload = CloseGeneralForumTopic>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

impl<T> Commands for T
where T: ConnectionLike,

Source§

fn get<'a, K, RV>(&mut self, key: K) -> Result<RV, RedisError>

Get the value of a key. If key is a vec this becomes an MGET (if using TypedCommands, you should specifically use mget to get the correct return type. Redis Docs
Source§

fn mget<'a, K, RV>(&mut self, key: K) -> Result<RV, RedisError>

Get values of keys Redis Docs
Source§

fn keys<'a, K, RV>(&mut self, key: K) -> Result<RV, RedisError>

Gets all keys matching pattern Redis Docs
Source§

fn set<'a, K, V, RV>(&mut self, key: K, value: V) -> Result<RV, RedisError>

Set the string value of a key. Redis Docs
Source§

fn set_options<'a, K, V, RV>( &mut self, key: K, value: V, options: SetOptions, ) -> Result<RV, RedisError>

Set the string value of a key with options. Redis Docs
Source§

fn set_multiple<'a, K, V, RV>( &mut self, items: &'a [(K, V)], ) -> Result<RV, RedisError>

👎Deprecated since 0.22.4: Renamed to mset() to reflect Redis name
Sets multiple keys to their values. Redis Docs
Source§

fn mset<'a, K, V, RV>(&mut self, items: &'a [(K, V)]) -> Result<RV, RedisError>

Sets multiple keys to their values. Redis Docs
Source§

fn set_ex<'a, K, V, RV>( &mut self, key: K, value: V, seconds: u64, ) -> Result<RV, RedisError>

Set the value and expiration of a key. Redis Docs
Source§

fn pset_ex<'a, K, V, RV>( &mut self, key: K, value: V, milliseconds: u64, ) -> Result<RV, RedisError>

Set the value and expiration in milliseconds of a key. Redis Docs
Source§

fn set_nx<'a, K, V, RV>(&mut self, key: K, value: V) -> Result<RV, RedisError>

Set the value of a key, only if the key does not exist Redis Docs
Source§

fn mset_nx<'a, K, V, RV>( &mut self, items: &'a [(K, V)], ) -> Result<RV, RedisError>

Sets multiple keys to their values failing if at least one already exists. Redis Docs
Source§

fn getset<'a, K, V, RV>(&mut self, key: K, value: V) -> Result<RV, RedisError>

Set the string value of a key and return its old value. Redis Docs
Source§

fn getrange<'a, K, RV>( &mut self, key: K, from: isize, to: isize, ) -> Result<RV, RedisError>

Get a range of bytes/substring from the value of a key. Negative values provide an offset from the end of the value. Redis returns an empty string if the key doesn’t exist, not Nil Redis Docs
Source§

fn setrange<'a, K, V, RV>( &mut self, key: K, offset: isize, value: V, ) -> Result<RV, RedisError>

Overwrite the part of the value stored in key at the specified offset. Redis Docs
Source§

fn del<'a, K, RV>(&mut self, key: K) -> Result<RV, RedisError>

Delete one or more keys. Returns the number of keys deleted. Redis Docs
Source§

fn exists<'a, K, RV>(&mut self, key: K) -> Result<RV, RedisError>

Determine if a key exists. Redis Docs
Source§

fn key_type<'a, K, RV>(&mut self, key: K) -> Result<RV, RedisError>

Determine the type of key. Redis Docs
Source§

fn expire<'a, K, RV>(&mut self, key: K, seconds: i64) -> Result<RV, RedisError>

Set a key’s time to live in seconds. Returns whether expiration was set. Redis Docs
Source§

fn expire_at<'a, K, RV>(&mut self, key: K, ts: i64) -> Result<RV, RedisError>

Set the expiration for a key as a UNIX timestamp. Returns whether expiration was set. Redis Docs
Source§

fn pexpire<'a, K, RV>(&mut self, key: K, ms: i64) -> Result<RV, RedisError>

Set a key’s time to live in milliseconds. Returns whether expiration was set. Redis Docs
Source§

fn pexpire_at<'a, K, RV>(&mut self, key: K, ts: i64) -> Result<RV, RedisError>

Set the expiration for a key as a UNIX timestamp in milliseconds. Returns whether expiration was set. Redis Docs
Source§

fn expire_time<'a, K, RV>(&mut self, key: K) -> Result<RV, RedisError>

Get the absolute Unix expiration timestamp in seconds. Returns ExistsButNotRelevant if key exists but has no expiration time. Redis Docs
Source§

fn pexpire_time<'a, K, RV>(&mut self, key: K) -> Result<RV, RedisError>

Get the absolute Unix expiration timestamp in milliseconds. Returns ExistsButNotRelevant if key exists but has no expiration time. Redis Docs
Source§

fn persist<'a, K, RV>(&mut self, key: K) -> Result<RV, RedisError>

Remove the expiration from a key. Returns whether a timeout was removed. Redis Docs
Source§

fn ttl<'a, K, RV>(&mut self, key: K) -> Result<RV, RedisError>

Get the time to live for a key in seconds. Returns ExistsButNotRelevant if key exists but has no expiration time. Redis Docs
Source§

fn pttl<'a, K, RV>(&mut self, key: K) -> Result<RV, RedisError>

Get the time to live for a key in milliseconds. Returns ExistsButNotRelevant if key exists but has no expiration time. Redis Docs
Source§

fn get_ex<'a, K, RV>( &mut self, key: K, expire_at: Expiry, ) -> Result<RV, RedisError>

Get the value of a key and set expiration Redis Docs
Source§

fn get_del<'a, K, RV>(&mut self, key: K) -> Result<RV, RedisError>

Get the value of a key and delete it Redis Docs
Source§

fn copy<'a, KSrc, KDst, Db, RV>( &mut self, source: KSrc, destination: KDst, options: CopyOptions<Db>, ) -> Result<RV, RedisError>
where KSrc: ToRedisArgs, KDst: ToRedisArgs, Db: ToString, RV: FromRedisValue,

Copy the value from one key to another, returning whether the copy was successful. Redis Docs
Source§

fn rename<'a, K, N, RV>(&mut self, key: K, new_key: N) -> Result<RV, RedisError>

Rename a key. Errors if key does not exist. Redis Docs
Source§

fn rename_nx<'a, K, N, RV>( &mut self, key: K, new_key: N, ) -> Result<RV, RedisError>

Rename a key, only if the new key does not exist. Errors if key does not exist. Returns whether the key was renamed, or false if the new key already exists. Redis Docs
Unlink one or more keys. This is a non-blocking version of DEL. Returns number of keys unlinked. Redis Docs
Source§

fn append<'a, K, V, RV>(&mut self, key: K, value: V) -> Result<RV, RedisError>

Append a value to a key. Returns length of string after operation. Redis Docs
Source§

fn incr<'a, K, V, RV>(&mut self, key: K, delta: V) -> Result<RV, RedisError>

Increment the numeric value of a key by the given amount. This issues a INCRBY or INCRBYFLOAT depending on the type. If the key does not exist, it is set to 0 before performing the operation.
Source§

fn decr<'a, K, V, RV>(&mut self, key: K, delta: V) -> Result<RV, RedisError>

Decrement the numeric value of a key by the given amount. If the key does not exist, it is set to 0 before performing the operation. Redis Docs
Source§

fn setbit<'a, K, RV>( &mut self, key: K, offset: usize, value: bool, ) -> Result<RV, RedisError>

Sets or clears the bit at offset in the string value stored at key. Returns the original bit value stored at offset. Redis Docs
Source§

fn getbit<'a, K, RV>(&mut self, key: K, offset: usize) -> Result<RV, RedisError>

Returns the bit value at offset in the string value stored at key. Redis Docs
Source§

fn bitcount<'a, K, RV>(&mut self, key: K) -> Result<RV, RedisError>

Count set bits in a string. Returns 0 if key does not exist. Redis Docs
Source§

fn bitcount_range<'a, K, RV>( &mut self, key: K, start: usize, end: usize, ) -> Result<RV, RedisError>

Count set bits in a string in a range. Returns 0 if key does not exist. Redis Docs
Source§

fn bit_and<'a, D, S, RV>( &mut self, dstkey: D, srckeys: S, ) -> Result<RV, RedisError>

Perform a bitwise AND between multiple keys (containing string values) and store the result in the destination key. Returns size of destination string after operation. Redis Docs
Source§

fn bit_or<'a, D, S, RV>( &mut self, dstkey: D, srckeys: S, ) -> Result<RV, RedisError>

Perform a bitwise OR between multiple keys (containing string values) and store the result in the destination key. Returns size of destination string after operation. Redis Docs
Source§

fn bit_xor<'a, D, S, RV>( &mut self, dstkey: D, srckeys: S, ) -> Result<RV, RedisError>

Perform a bitwise XOR between multiple keys (containing string values) and store the result in the destination key. Returns size of destination string after operation. Redis Docs
Source§

fn bit_not<'a, D, S, RV>( &mut self, dstkey: D, srckey: S, ) -> Result<RV, RedisError>

Perform a bitwise NOT of the key (containing string values) and store the result in the destination key. Returns size of destination string after operation. Redis Docs
Source§

fn bit_diff<'a, D, S, RV>( &mut self, dstkey: D, srckeys: S, ) -> Result<RV, RedisError>

DIFF(X, Y1, Y2, …)
Perform a set difference to extract the members of X that are not members of any of Y1, Y2,….
Logical representation: X ∧ ¬(Y1 ∨ Y2 ∨ …)
Redis Docs
Source§

fn bit_diff1<'a, D, S, RV>( &mut self, dstkey: D, srckeys: S, ) -> Result<RV, RedisError>

DIFF1(X, Y1, Y2, …) (Relative complement difference)
Perform a relative complement set difference to extract the members of one or more of Y1, Y2,… that are not members of X.
Logical representation: ¬X ∧ (Y1 ∨ Y2 ∨ …)
Redis Docs
Source§

fn bit_and_or<'a, D, S, RV>( &mut self, dstkey: D, srckeys: S, ) -> Result<RV, RedisError>

ANDOR(X, Y1, Y2, …)
Perform an “intersection of union(s)” operation to extract the members of X that are also members of one or more of Y1, Y2,….
Logical representation: X ∧ (Y1 ∨ Y2 ∨ …)
Redis Docs
Source§

fn bit_one<'a, D, S, RV>( &mut self, dstkey: D, srckeys: S, ) -> Result<RV, RedisError>

ONE(X, Y1, Y2, …)
Perform an “exclusive membership” operation to extract the members of exactly one of X, Y1, Y2, ….
Logical representation: (X ∨ Y1 ∨ Y2 ∨ …) ∧ ¬((X ∧ Y1) ∨ (X ∧ Y2) ∨ (Y1 ∧ Y2) ∨ (Y1 ∧ Y3) ∨ …)
Redis Docs
Source§

fn strlen<'a, K, RV>(&mut self, key: K) -> Result<RV, RedisError>

Get the length of the value stored in a key. 0 if key does not exist. Redis Docs
Source§

fn hget<'a, K, F, RV>(&mut self, key: K, field: F) -> Result<RV, RedisError>

Gets a single (or multiple) fields from a hash.
Source§

fn hmget<'a, K, F, RV>(&mut self, key: K, fields: F) -> Result<RV, RedisError>

Gets multiple fields from a hash. Redis Docs
Source§

fn hget_ex<'a, K, F, RV>( &mut self, key: K, fields: F, expire_at: Expiry, ) -> Result<RV, RedisError>

Get the value of one or more fields of a given hash key, and optionally set their expiration Redis Docs
Source§

fn hdel<'a, K, F, RV>(&mut self, key: K, field: F) -> Result<RV, RedisError>

Deletes a single (or multiple) fields from a hash. Returns number of fields deleted. Redis Docs
Source§

fn hget_del<'a, K, F, RV>( &mut self, key: K, fields: F, ) -> Result<RV, RedisError>

Get and delete the value of one or more fields of a given hash key Redis Docs
Source§

fn hset<'a, K, F, V, RV>( &mut self, key: K, field: F, value: V, ) -> Result<RV, RedisError>

Sets a single field in a hash. Returns number of fields added. Redis Docs
Source§

fn hset_ex<'a, K, F, V, RV>( &mut self, key: K, hash_field_expiration_options: &'a HashFieldExpirationOptions, fields_values: &'a [(F, V)], ) -> Result<RV, RedisError>

Set the value of one or more fields of a given hash key, and optionally set their expiration Redis Docs
Source§

fn hset_nx<'a, K, F, V, RV>( &mut self, key: K, field: F, value: V, ) -> Result<RV, RedisError>

Sets a single field in a hash if it does not exist. Returns whether the field was added. Redis Docs
Source§

fn hset_multiple<'a, K, F, V, RV>( &mut self, key: K, items: &'a [(F, V)], ) -> Result<RV, RedisError>

Sets multiple fields in a hash. Redis Docs
Source§

fn hincr<'a, K, F, D, RV>( &mut self, key: K, field: F, delta: D, ) -> Result<RV, RedisError>

Increments a value. Returns the new value of the field after incrementation.
Source§

fn hexists<'a, K, F, RV>(&mut self, key: K, field: F) -> Result<RV, RedisError>

Checks if a field in a hash exists. Redis Docs
Source§

fn httl<'a, K, F, RV>(&mut self, key: K, fields: F) -> Result<RV, RedisError>

Get one or more fields’ TTL in seconds. Redis Docs
Source§

fn hpttl<'a, K, F, RV>(&mut self, key: K, fields: F) -> Result<RV, RedisError>

Get one or more fields’ TTL in milliseconds. Redis Docs
Source§

fn hexpire<'a, K, F, RV>( &mut self, key: K, seconds: i64, opt: ExpireOption, fields: F, ) -> Result<RV, RedisError>

Set one or more fields’ time to live in seconds. Returns an array where each element corresponds to the field at the same index in the fields argument. Each element of the array is either: 0 if the specified condition has not been met. 1 if the expiration time was updated. 2 if called with 0 seconds. Errors if provided key exists but is not a hash. Redis Docs
Source§

fn hexpire_at<'a, K, F, RV>( &mut self, key: K, ts: i64, opt: ExpireOption, fields: F, ) -> Result<RV, RedisError>

Set the expiration for one or more fields as a UNIX timestamp in seconds. Returns an array where each element corresponds to the field at the same index in the fields argument. Each element of the array is either: 0 if the specified condition has not been met. 1 if the expiration time was updated. 2 if called with a time in the past. Errors if provided key exists but is not a hash. Redis Docs
Source§

fn hexpire_time<'a, K, F, RV>( &mut self, key: K, fields: F, ) -> Result<RV, RedisError>

Returns the absolute Unix expiration timestamp in seconds. Redis Docs
Source§

fn hpersist<'a, K, F, RV>( &mut self, key: K, fields: F, ) -> Result<RV, RedisError>

Remove the expiration from a key. Returns 1 if the expiration was removed. Redis Docs
Source§

fn hpexpire<'a, K, F, RV>( &mut self, key: K, milliseconds: i64, opt: ExpireOption, fields: F, ) -> Result<RV, RedisError>

Set one or more fields’ time to live in milliseconds. Returns an array where each element corresponds to the field at the same index in the fields argument. Each element of the array is either: 0 if the specified condition has not been met. 1 if the expiration time was updated. 2 if called with 0 seconds. Errors if provided key exists but is not a hash. Redis Docs
Source§

fn hpexpire_at<'a, K, F, RV>( &mut self, key: K, ts: i64, opt: ExpireOption, fields: F, ) -> Result<RV, RedisError>

Set the expiration for one or more fields as a UNIX timestamp in milliseconds. Returns an array where each element corresponds to the field at the same index in the fields argument. Each element of the array is either: 0 if the specified condition has not been met. 1 if the expiration time was updated. 2 if called with a time in the past. Errors if provided key exists but is not a hash. Redis Docs
Source§

fn hpexpire_time<'a, K, F, RV>( &mut self, key: K, fields: F, ) -> Result<RV, RedisError>

Returns the absolute Unix expiration timestamp in seconds. Redis Docs
Source§

fn hkeys<'a, K, RV>(&mut self, key: K) -> Result<RV, RedisError>

Gets all the keys in a hash. Redis Docs
Source§

fn hvals<'a, K, RV>(&mut self, key: K) -> Result<RV, RedisError>

Gets all the values in a hash. Redis Docs
Source§

fn hgetall<'a, K, RV>(&mut self, key: K) -> Result<RV, RedisError>

Gets all the fields and values in a hash. Redis Docs
Source§

fn hlen<'a, K, RV>(&mut self, key: K) -> Result<RV, RedisError>

Gets the length of a hash. Returns 0 if key does not exist. Redis Docs
Source§

fn blmove<'a, S, D, RV>( &mut self, srckey: S, dstkey: D, src_dir: Direction, dst_dir: Direction, timeout: f64, ) -> Result<RV, RedisError>

Pop an element from a list, push it to another list and return it; or block until one is available Redis Docs
Source§

fn blmpop<'a, K, RV>( &mut self, timeout: f64, numkeys: usize, key: K, dir: Direction, count: usize, ) -> Result<RV, RedisError>

Pops count elements from the first non-empty list key from the list of provided key names; or blocks until one is available. Redis Docs
Source§

fn blpop<'a, K, RV>(&mut self, key: K, timeout: f64) -> Result<RV, RedisError>

Remove and get the first element in a list, or block until one is available. Redis Docs
Source§

fn brpop<'a, K, RV>(&mut self, key: K, timeout: f64) -> Result<RV, RedisError>

Remove and get the last element in a list, or block until one is available. Redis Docs
Source§

fn brpoplpush<'a, S, D, RV>( &mut self, srckey: S, dstkey: D, timeout: f64, ) -> Result<RV, RedisError>

Pop a value from a list, push it to another list and return it; or block until one is available. Redis Docs
Source§

fn lindex<'a, K, RV>(&mut self, key: K, index: isize) -> Result<RV, RedisError>

Get an element from a list by its index. Redis Docs
Source§

fn linsert_before<'a, K, P, V, RV>( &mut self, key: K, pivot: P, value: V, ) -> Result<RV, RedisError>

Insert an element before another element in a list. Redis Docs
Source§

fn linsert_after<'a, K, P, V, RV>( &mut self, key: K, pivot: P, value: V, ) -> Result<RV, RedisError>

Insert an element after another element in a list. Redis Docs
Source§

fn llen<'a, K, RV>(&mut self, key: K) -> Result<RV, RedisError>

Returns the length of the list stored at key. Redis Docs
Source§

fn lmove<'a, S, D, RV>( &mut self, srckey: S, dstkey: D, src_dir: Direction, dst_dir: Direction, ) -> Result<RV, RedisError>

Pop an element a list, push it to another list and return it Redis Docs
Source§

fn lmpop<'a, K, RV>( &mut self, numkeys: usize, key: K, dir: Direction, count: usize, ) -> Result<RV, RedisError>

Pops count elements from the first non-empty list key from the list of provided key names. Redis Docs
Source§

fn lpop<'a, K, RV>( &mut self, key: K, count: Option<NonZero<usize>>, ) -> Result<RV, RedisError>

Removes and returns the up to count first elements of the list stored at key. Read more
Source§

fn lpos<'a, K, V, RV>( &mut self, key: K, value: V, options: LposOptions, ) -> Result<RV, RedisError>

Returns the index of the first matching value of the list stored at key. Redis Docs
Source§

fn lpush<'a, K, V, RV>(&mut self, key: K, value: V) -> Result<RV, RedisError>

Insert all the specified values at the head of the list stored at key. Redis Docs
Source§

fn lpush_exists<'a, K, V, RV>( &mut self, key: K, value: V, ) -> Result<RV, RedisError>

Inserts a value at the head of the list stored at key, only if key already exists and holds a list. Redis Docs
Source§

fn lrange<'a, K, RV>( &mut self, key: K, start: isize, stop: isize, ) -> Result<RV, RedisError>

Returns the specified elements of the list stored at key. Redis Docs
Source§

fn lrem<'a, K, V, RV>( &mut self, key: K, count: isize, value: V, ) -> Result<RV, RedisError>

Removes the first count occurrences of elements equal to value from the list stored at key. Redis Docs
Source§

fn ltrim<'a, K, RV>( &mut self, key: K, start: isize, stop: isize, ) -> Result<RV, RedisError>

Trim an existing list so that it will contain only the specified range of elements specified. Redis Docs
Source§

fn lset<'a, K, V, RV>( &mut self, key: K, index: isize, value: V, ) -> Result<RV, RedisError>

Sets the list element at index to value Redis Docs
Source§

fn ping<'a, RV>(&mut self) -> Result<RV, RedisError>
where RV: FromRedisValue,

Sends a ping to the server Redis Docs
Source§

fn ping_message<'a, K, RV>(&mut self, message: K) -> Result<RV, RedisError>

Sends a ping with a message to the server Redis Docs
Source§

fn rpop<'a, K, RV>( &mut self, key: K, count: Option<NonZero<usize>>, ) -> Result<RV, RedisError>

Removes and returns the up to count last elements of the list stored at key Read more
Source§

fn rpoplpush<'a, K, D, RV>( &mut self, key: K, dstkey: D, ) -> Result<RV, RedisError>

Pop a value from a list, push it to another list and return it. Redis Docs
Source§

fn rpush<'a, K, V, RV>(&mut self, key: K, value: V) -> Result<RV, RedisError>

Insert all the specified values at the tail of the list stored at key. Redis Docs
Source§

fn rpush_exists<'a, K, V, RV>( &mut self, key: K, value: V, ) -> Result<RV, RedisError>

Inserts value at the tail of the list stored at key, only if key already exists and holds a list. Redis Docs
Source§

fn sadd<'a, K, M, RV>(&mut self, key: K, member: M) -> Result<RV, RedisError>

Add one or more members to a set. Redis Docs
Source§

fn scard<'a, K, RV>(&mut self, key: K) -> Result<RV, RedisError>

Get the number of members in a set. Redis Docs
Source§

fn sdiff<'a, K, RV>(&mut self, keys: K) -> Result<RV, RedisError>

Subtract multiple sets. Redis Docs
Source§

fn sdiffstore<'a, D, K, RV>( &mut self, dstkey: D, keys: K, ) -> Result<RV, RedisError>

Subtract multiple sets and store the resulting set in a key. Redis Docs
Source§

fn sinter<'a, K, RV>(&mut self, keys: K) -> Result<RV, RedisError>

Intersect multiple sets. Redis Docs
Source§

fn sinterstore<'a, D, K, RV>( &mut self, dstkey: D, keys: K, ) -> Result<RV, RedisError>

Intersect multiple sets and store the resulting set in a key. Redis Docs
Source§

fn sismember<'a, K, M, RV>( &mut self, key: K, member: M, ) -> Result<RV, RedisError>

Determine if a given value is a member of a set. Redis Docs
Source§

fn smismember<'a, K, M, RV>( &mut self, key: K, members: M, ) -> Result<RV, RedisError>

Determine if given values are members of a set. Redis Docs
Source§

fn smembers<'a, K, RV>(&mut self, key: K) -> Result<RV, RedisError>

Get all the members in a set. Redis Docs
Source§

fn smove<'a, S, D, M, RV>( &mut self, srckey: S, dstkey: D, member: M, ) -> Result<RV, RedisError>

Move a member from one set to another. Redis Docs
Source§

fn spop<'a, K, RV>(&mut self, key: K) -> Result<RV, RedisError>

Remove and return a random member from a set. Redis Docs
Source§

fn srandmember<'a, K, RV>(&mut self, key: K) -> Result<RV, RedisError>

Get one random member from a set. Redis Docs
Source§

fn srandmember_multiple<'a, K, RV>( &mut self, key: K, count: usize, ) -> Result<RV, RedisError>

Get multiple random members from a set. Redis Docs
Source§

fn srem<'a, K, M, RV>(&mut self, key: K, member: M) -> Result<RV, RedisError>

Remove one or more members from a set. Redis Docs
Source§

fn sunion<'a, K, RV>(&mut self, keys: K) -> Result<RV, RedisError>

Add multiple sets. Redis Docs
Source§

fn sunionstore<'a, D, K, RV>( &mut self, dstkey: D, keys: K, ) -> Result<RV, RedisError>

Add multiple sets and store the resulting set in a key. Redis Docs
Source§

fn zadd<'a, K, S, M, RV>( &mut self, key: K, member: M, score: S, ) -> Result<RV, RedisError>

Add one member to a sorted set, or update its score if it already exists. Redis Docs
Source§

fn zadd_multiple<'a, K, S, M, RV>( &mut self, key: K, items: &'a [(S, M)], ) -> Result<RV, RedisError>

Add multiple members to a sorted set, or update its score if it already exists. Redis Docs
Source§

fn zadd_options<'a, K, S, M, RV>( &mut self, key: K, member: M, score: S, options: &'a SortedSetAddOptions, ) -> Result<RV, RedisError>

Add one member to a sorted set, or update its score if it already exists. Redis Docs
Source§

fn zadd_multiple_options<'a, K, S, M, RV>( &mut self, key: K, items: &'a [(S, M)], options: &'a SortedSetAddOptions, ) -> Result<RV, RedisError>

Add multiple members to a sorted set, or update its score if it already exists. Redis Docs
Source§

fn zcard<'a, K, RV>(&mut self, key: K) -> Result<RV, RedisError>

Get the number of members in a sorted set. Redis Docs
Source§

fn zcount<'a, K, M, MM, RV>( &mut self, key: K, min: M, max: MM, ) -> Result<RV, RedisError>

Count the members in a sorted set with scores within the given values. Redis Docs
Source§

fn zincr<'a, K, M, D, RV>( &mut self, key: K, member: M, delta: D, ) -> Result<RV, RedisError>

Increments the member in a sorted set at key by delta. If the member does not exist, it is added with delta as its score. Redis Docs
Source§

fn zinterstore<'a, D, K, RV>( &mut self, dstkey: D, keys: K, ) -> Result<RV, RedisError>

Intersect multiple sorted sets and store the resulting sorted set in a new key using SUM as aggregation function. Redis Docs
Source§

fn zinterstore_min<'a, D, K, RV>( &mut self, dstkey: D, keys: K, ) -> Result<RV, RedisError>

Intersect multiple sorted sets and store the resulting sorted set in a new key using MIN as aggregation function. Redis Docs
Source§

fn zinterstore_max<'a, D, K, RV>( &mut self, dstkey: D, keys: K, ) -> Result<RV, RedisError>

Intersect multiple sorted sets and store the resulting sorted set in a new key using MAX as aggregation function. Redis Docs
Source§

fn zinterstore_weights<'a, D, K, W, RV>( &mut self, dstkey: D, keys: &'a [(K, W)], ) -> Result<RV, RedisError>

Commands::zinterstore, but with the ability to specify a multiplication factor for each sorted set by pairing one with each key in a tuple. Redis Docs
Source§

fn zinterstore_min_weights<'a, D, K, W, RV>( &mut self, dstkey: D, keys: &'a [(K, W)], ) -> Result<RV, RedisError>

Commands::zinterstore_min, but with the ability to specify a multiplication factor for each sorted set by pairing one with each key in a tuple. Redis Docs
Source§

fn zinterstore_max_weights<'a, D, K, W, RV>( &mut self, dstkey: D, keys: &'a [(K, W)], ) -> Result<RV, RedisError>

Commands::zinterstore_max, but with the ability to specify a multiplication factor for each sorted set by pairing one with each key in a tuple. Redis Docs
Source§

fn zlexcount<'a, K, M, MM, RV>( &mut self, key: K, min: M, max: MM, ) -> Result<RV, RedisError>

Count the number of members in a sorted set between a given lexicographical range. Redis Docs
Source§

fn bzpopmax<'a, K, RV>( &mut self, key: K, timeout: f64, ) -> Result<RV, RedisError>

Removes and returns the member with the highest score in a sorted set. Blocks until a member is available otherwise. Redis Docs
Source§

fn zpopmax<'a, K, RV>(&mut self, key: K, count: isize) -> Result<RV, RedisError>

Removes and returns up to count members with the highest scores in a sorted set Redis Docs
Source§

fn bzpopmin<'a, K, RV>( &mut self, key: K, timeout: f64, ) -> Result<RV, RedisError>

Removes and returns the member with the lowest score in a sorted set. Blocks until a member is available otherwise. Redis Docs
Source§

fn zpopmin<'a, K, RV>(&mut self, key: K, count: isize) -> Result<RV, RedisError>

Removes and returns up to count members with the lowest scores in a sorted set Redis Docs
Source§

fn bzmpop_max<'a, K, RV>( &mut self, timeout: f64, keys: K, count: isize, ) -> Result<RV, RedisError>

Removes and returns up to count members with the highest scores, from the first non-empty sorted set in the provided list of key names. Blocks until a member is available otherwise. Redis Docs
Source§

fn zmpop_max<'a, K, RV>( &mut self, keys: K, count: isize, ) -> Result<RV, RedisError>

Removes and returns up to count members with the highest scores, from the first non-empty sorted set in the provided list of key names. Redis Docs
Source§

fn bzmpop_min<'a, K, RV>( &mut self, timeout: f64, keys: K, count: isize, ) -> Result<RV, RedisError>

Removes and returns up to count members with the lowest scores, from the first non-empty sorted set in the provided list of key names. Blocks until a member is available otherwise. Redis Docs
Source§

fn zmpop_min<'a, K, RV>( &mut self, keys: K, count: isize, ) -> Result<RV, RedisError>

Removes and returns up to count members with the lowest scores, from the first non-empty sorted set in the provided list of key names. Redis Docs
Source§

fn zrandmember<'a, K, RV>( &mut self, key: K, count: Option<isize>, ) -> Result<RV, RedisError>

Return up to count random members in a sorted set (or 1 if count == None) Redis Docs
Source§

fn zrandmember_withscores<'a, K, RV>( &mut self, key: K, count: isize, ) -> Result<RV, RedisError>

Return up to count random members in a sorted set with scores Redis Docs
Source§

fn zrange<'a, K, RV>( &mut self, key: K, start: isize, stop: isize, ) -> Result<RV, RedisError>

Return a range of members in a sorted set, by index Redis Docs
Source§

fn zrange_withscores<'a, K, RV>( &mut self, key: K, start: isize, stop: isize, ) -> Result<RV, RedisError>

Return a range of members in a sorted set, by index with scores. Redis Docs
Source§

fn zrangebylex<'a, K, M, MM, RV>( &mut self, key: K, min: M, max: MM, ) -> Result<RV, RedisError>

Return a range of members in a sorted set, by lexicographical range. Redis Docs
Source§

fn zrangebylex_limit<'a, K, M, MM, RV>( &mut self, key: K, min: M, max: MM, offset: isize, count: isize, ) -> Result<RV, RedisError>

Return a range of members in a sorted set, by lexicographical range with offset and limit. Redis Docs
Source§

fn zrevrangebylex<'a, K, MM, M, RV>( &mut self, key: K, max: MM, min: M, ) -> Result<RV, RedisError>

Return a range of members in a sorted set, by lexicographical range. Redis Docs
Source§

fn zrevrangebylex_limit<'a, K, MM, M, RV>( &mut self, key: K, max: MM, min: M, offset: isize, count: isize, ) -> Result<RV, RedisError>

Return a range of members in a sorted set, by lexicographical range with offset and limit. Redis Docs
Source§

fn zrangebyscore<'a, K, M, MM, RV>( &mut self, key: K, min: M, max: MM, ) -> Result<RV, RedisError>

Return a range of members in a sorted set, by score. Redis Docs
Source§

fn zrangebyscore_withscores<'a, K, M, MM, RV>( &mut self, key: K, min: M, max: MM, ) -> Result<RV, RedisError>

Return a range of members in a sorted set, by score with scores. Redis Docs
Source§

fn zrangebyscore_limit<'a, K, M, MM, RV>( &mut self, key: K, min: M, max: MM, offset: isize, count: isize, ) -> Result<RV, RedisError>

Return a range of members in a sorted set, by score with limit. Redis Docs
Source§

fn zrangebyscore_limit_withscores<'a, K, M, MM, RV>( &mut self, key: K, min: M, max: MM, offset: isize, count: isize, ) -> Result<RV, RedisError>

Return a range of members in a sorted set, by score with limit with scores. Redis Docs
Source§

fn zrank<'a, K, M, RV>(&mut self, key: K, member: M) -> Result<RV, RedisError>

Determine the index of a member in a sorted set. Redis Docs
Source§

fn zrem<'a, K, M, RV>(&mut self, key: K, members: M) -> Result<RV, RedisError>

Remove one or more members from a sorted set. Redis Docs
Source§

fn zrembylex<'a, K, M, MM, RV>( &mut self, key: K, min: M, max: MM, ) -> Result<RV, RedisError>

Remove all members in a sorted set between the given lexicographical range. Redis Docs
Source§

fn zremrangebyrank<'a, K, RV>( &mut self, key: K, start: isize, stop: isize, ) -> Result<RV, RedisError>

Remove all members in a sorted set within the given indexes. Redis Docs
Source§

fn zrembyscore<'a, K, M, MM, RV>( &mut self, key: K, min: M, max: MM, ) -> Result<RV, RedisError>

Remove all members in a sorted set within the given scores. Redis Docs
Source§

fn zrevrange<'a, K, RV>( &mut self, key: K, start: isize, stop: isize, ) -> Result<RV, RedisError>

Return a range of members in a sorted set, by index, ordered from high to low. Redis Docs
Source§

fn zrevrange_withscores<'a, K, RV>( &mut self, key: K, start: isize, stop: isize, ) -> Result<RV, RedisError>

Return a range of members in a sorted set, by index, with scores ordered from high to low. Redis Docs
Source§

fn zrevrangebyscore<'a, K, MM, M, RV>( &mut self, key: K, max: MM, min: M, ) -> Result<RV, RedisError>

Return a range of members in a sorted set, by score. Redis Docs
Source§

fn zrevrangebyscore_withscores<'a, K, MM, M, RV>( &mut self, key: K, max: MM, min: M, ) -> Result<RV, RedisError>

Return a range of members in a sorted set, by score with scores. Redis Docs
Source§

fn zrevrangebyscore_limit<'a, K, MM, M, RV>( &mut self, key: K, max: MM, min: M, offset: isize, count: isize, ) -> Result<RV, RedisError>

Return a range of members in a sorted set, by score with limit. Redis Docs
Source§

fn zrevrangebyscore_limit_withscores<'a, K, MM, M, RV>( &mut self, key: K, max: MM, min: M, offset: isize, count: isize, ) -> Result<RV, RedisError>

Return a range of members in a sorted set, by score with limit with scores. Redis Docs
Source§

fn zrevrank<'a, K, M, RV>( &mut self, key: K, member: M, ) -> Result<RV, RedisError>

Determine the index of a member in a sorted set, with scores ordered from high to low. Redis Docs
Source§

fn zscore<'a, K, M, RV>(&mut self, key: K, member: M) -> Result<RV, RedisError>

Get the score associated with the given member in a sorted set. Redis Docs
Source§

fn zscore_multiple<'a, K, M, RV>( &mut self, key: K, members: &'a [M], ) -> Result<RV, RedisError>

Get the scores associated with multiple members in a sorted set. Redis Docs
Source§

fn zunionstore<'a, D, K, RV>( &mut self, dstkey: D, keys: K, ) -> Result<RV, RedisError>

Unions multiple sorted sets and store the resulting sorted set in a new key using SUM as aggregation function. Redis Docs
Source§

fn zunionstore_min<'a, D, K, RV>( &mut self, dstkey: D, keys: K, ) -> Result<RV, RedisError>

Unions multiple sorted sets and store the resulting sorted set in a new key using MIN as aggregation function. Redis Docs
Source§

fn zunionstore_max<'a, D, K, RV>( &mut self, dstkey: D, keys: K, ) -> Result<RV, RedisError>

Unions multiple sorted sets and store the resulting sorted set in a new key using MAX as aggregation function. Redis Docs
Source§

fn zunionstore_weights<'a, D, K, W, RV>( &mut self, dstkey: D, keys: &'a [(K, W)], ) -> Result<RV, RedisError>

Commands::zunionstore, but with the ability to specify a multiplication factor for each sorted set by pairing one with each key in a tuple. Redis Docs
Source§

fn zunionstore_min_weights<'a, D, K, W, RV>( &mut self, dstkey: D, keys: &'a [(K, W)], ) -> Result<RV, RedisError>

Commands::zunionstore_min, but with the ability to specify a multiplication factor for each sorted set by pairing one with each key in a tuple. Redis Docs
Source§

fn zunionstore_max_weights<'a, D, K, W, RV>( &mut self, dstkey: D, keys: &'a [(K, W)], ) -> Result<RV, RedisError>

Commands::zunionstore_max, but with the ability to specify a multiplication factor for each sorted set by pairing one with each key in a tuple. Redis Docs
Source§

fn pfadd<'a, K, E, RV>(&mut self, key: K, element: E) -> Result<RV, RedisError>

Adds the specified elements to the specified HyperLogLog. Redis Docs
Source§

fn pfcount<'a, K, RV>(&mut self, key: K) -> Result<RV, RedisError>

Return the approximated cardinality of the set(s) observed by the HyperLogLog at key(s). Redis Docs
Source§

fn pfmerge<'a, D, S, RV>( &mut self, dstkey: D, srckeys: S, ) -> Result<RV, RedisError>

Merge N different HyperLogLogs into a single one. Redis Docs
Source§

fn publish<'a, K, E, RV>( &mut self, channel: K, message: E, ) -> Result<RV, RedisError>

Posts a message to the given channel. Redis Docs
Source§

fn spublish<'a, K, E, RV>( &mut self, channel: K, message: E, ) -> Result<RV, RedisError>

Posts a message to the given sharded channel. Redis Docs
Source§

fn object_encoding<'a, K, RV>(&mut self, key: K) -> Result<RV, RedisError>

Returns the encoding of a key. Redis Docs
Source§

fn object_idletime<'a, K, RV>(&mut self, key: K) -> Result<RV, RedisError>

Returns the time in seconds since the last access of a key. Redis Docs
Source§

fn object_freq<'a, K, RV>(&mut self, key: K) -> Result<RV, RedisError>

Returns the logarithmic access frequency counter of a key. Redis Docs
Source§

fn object_refcount<'a, K, RV>(&mut self, key: K) -> Result<RV, RedisError>

Returns the reference count of a key. Redis Docs
Source§

fn client_getname<'a, RV>(&mut self) -> Result<RV, RedisError>
where RV: FromRedisValue,

Returns the name of the current connection as set by CLIENT SETNAME. Redis Docs
Source§

fn client_id<'a, RV>(&mut self) -> Result<RV, RedisError>
where RV: FromRedisValue,

Returns the ID of the current connection. Redis Docs
Source§

fn client_setname<'a, K, RV>( &mut self, connection_name: K, ) -> Result<RV, RedisError>

Command assigns a name to the current connection. Redis Docs
Source§

fn flushall<'a, RV>(&mut self) -> Result<RV, RedisError>
where RV: FromRedisValue,

Deletes all the keys of all databases Read more
Source§

fn flushall_options<'a, RV>( &mut self, options: &'a FlushAllOptions, ) -> Result<RV, RedisError>
where RV: FromRedisValue,

Deletes all the keys of all databases with options Read more
Source§

fn flushdb<'a, RV>(&mut self) -> Result<RV, RedisError>
where RV: FromRedisValue,

Deletes all the keys of the current database Read more
Source§

fn flushdb_options<'a, RV>( &mut self, options: &'a FlushAllOptions, ) -> Result<RV, RedisError>
where RV: FromRedisValue,

Deletes all the keys of the current database with options Read more
Source§

fn scan<RV>(&mut self) -> Result<Iter<'_, RV>, RedisError>
where RV: FromRedisValue,

Incrementally iterate the keys space.
Source§

fn scan_options<RV>( &mut self, opts: ScanOptions, ) -> Result<Iter<'_, RV>, RedisError>
where RV: FromRedisValue,

Incrementally iterate the keys space with options.
Source§

fn scan_match<P, RV>(&mut self, pattern: P) -> Result<Iter<'_, RV>, RedisError>

Incrementally iterate the keys space for keys matching a pattern.
Source§

fn hscan<K, RV>(&mut self, key: K) -> Result<Iter<'_, RV>, RedisError>

Incrementally iterate hash fields and associated values.
Source§

fn hscan_match<K, P, RV>( &mut self, key: K, pattern: P, ) -> Result<Iter<'_, RV>, RedisError>

Incrementally iterate hash fields and associated values for field names matching a pattern.
Source§

fn sscan<K, RV>(&mut self, key: K) -> Result<Iter<'_, RV>, RedisError>

Incrementally iterate set elements.
Source§

fn sscan_match<K, P, RV>( &mut self, key: K, pattern: P, ) -> Result<Iter<'_, RV>, RedisError>

Incrementally iterate set elements for elements matching a pattern.
Source§

fn zscan<K, RV>(&mut self, key: K) -> Result<Iter<'_, RV>, RedisError>

Incrementally iterate sorted set elements.
Source§

fn zscan_match<K, P, RV>( &mut self, key: K, pattern: P, ) -> Result<Iter<'_, RV>, RedisError>

Incrementally iterate sorted set elements for elements matching a pattern.
Source§

impl<C, T> ConnectionLike for T
where C: ConnectionLike, T: DerefMut<Target = C>,

Source§

fn req_packed_command(&mut self, cmd: &[u8]) -> Result<Value, RedisError>

Sends an already encoded (packed) command into the TCP socket and reads the single response from it.
Source§

fn req_packed_commands( &mut self, cmd: &[u8], offset: usize, count: usize, ) -> Result<Vec<Value>, RedisError>

Source§

fn req_command(&mut self, cmd: &Cmd) -> Result<Value, RedisError>

Sends a Cmd into the TCP socket and reads a single response from it.
Source§

fn get_db(&self) -> i64

Returns the database this connection is bound to. Note that this information might be unreliable because it’s initially cached and also might be incorrect if the connection like object is not actually connected.
Source§

fn supports_pipelining(&self) -> bool

Source§

fn check_connection(&mut self) -> bool

Check that all connections it has are available (PING internally).
Source§

fn is_open(&self) -> bool

Returns the connection status. Read more
Source§

impl<P> ConvertGiftToStarsSetters for P
where P: HasPayload<Payload = ConvertGiftToStars>,

Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn owned_gift_id(self, value: OwnedGiftId) -> Self

Setter for owned_gift_id field.
Source§

impl<P> CopyMessageSetters for P
where P: HasPayload<Payload = CopyMessage>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn from_chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for from_chat_id field.
Source§

fn message_id(self, value: MessageId) -> Self

Setter for message_id field.
Source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
Source§

fn video_start_timestamp(self, value: Seconds) -> Self

Setter for video_start_timestamp field.
Source§

fn caption<T>(self, value: T) -> Self
where T: Into<String>,

Setter for caption field.
Source§

fn parse_mode(self, value: ParseMode) -> Self

Setter for parse_mode field.
Source§

fn caption_entities<T>(self, value: T) -> Self

Setter for caption_entities field.
Source§

fn show_caption_above_media(self, value: bool) -> Self

Setter for show_caption_above_media field.
Source§

fn disable_notification(self, value: bool) -> Self

Setter for disable_notification field.
Source§

fn protect_content(self, value: bool) -> Self

Setter for protect_content field.
Source§

fn allow_paid_broadcast(self, value: bool) -> Self

Setter for allow_paid_broadcast field.
Source§

fn message_effect_id(self, value: EffectId) -> Self

Setter for message_effect_id field.
Source§

fn reply_parameters(self, value: ReplyParameters) -> Self

Setter for reply_parameters field.
Source§

fn reply_markup<T>(self, value: T) -> Self
where T: Into<ReplyMarkup>,

Setter for reply_markup field.
Source§

impl<P> CopyMessagesSetters for P
where P: HasPayload<Payload = CopyMessages>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn from_chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for from_chat_id field.
Source§

fn message_ids<T>(self, value: T) -> Self
where T: IntoIterator<Item = <Vec<MessageId> as IntoIterator>::Item>,

Setter for message_ids field.
Source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
Source§

fn disable_notification(self, value: bool) -> Self

Setter for disable_notification field.
Source§

fn protect_content(self, value: bool) -> Self

Setter for protect_content field.
Source§

fn remove_caption(self, value: bool) -> Self

Setter for remove_caption field.
Source§

impl<P> CreateChatInviteLinkSetters for P
where P: HasPayload<Payload = CreateChatInviteLink>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn name<T>(self, value: T) -> Self
where T: Into<String>,

Setter for name field.
Source§

fn expire_date<T>(self, value: T) -> Self
where T: Into<DateTime<Utc>>,

Setter for expire_date field.
Source§

fn member_limit(self, value: u32) -> Self

Setter for member_limit field.
Source§

fn creates_join_request(self, value: bool) -> Self

Setter for creates_join_request field.
Source§

impl<P> CreateChatSubscriptionInviteLinkSetters for P

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn subscription_period(self, value: Seconds) -> Self

Setter for subscription_period field.
Source§

fn subscription_price(self, value: u32) -> Self

Setter for subscription_price field.
Source§

fn name<T>(self, value: T) -> Self
where T: Into<String>,

Setter for name field.
Source§

impl<P> CreateForumTopicSetters for P
where P: HasPayload<Payload = CreateForumTopic>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn name<T>(self, value: T) -> Self
where T: Into<String>,

Setter for name field.
Source§

fn icon_color(self, value: Rgb) -> Self

Setter for icon_color field.
Source§

fn icon_custom_emoji_id(self, value: CustomEmojiId) -> Self

Setter for icon_custom_emoji_id field.
Source§

impl<P> CreateInvoiceLinkSetters for P
where P: HasPayload<Payload = CreateInvoiceLink>,

Source§

fn title<T>(self, value: T) -> Self
where T: Into<String>,

Setter for title field.
Source§

fn description<T>(self, value: T) -> Self
where T: Into<String>,

Setter for description field.
Source§

fn payload<T>(self, value: T) -> Self
where T: Into<String>,

Setter for payload field.
Source§

fn currency<T>(self, value: T) -> Self
where T: Into<String>,

Setter for currency field.
Source§

fn prices<T>(self, value: T) -> Self
where T: IntoIterator<Item = <Vec<LabeledPrice> as IntoIterator>::Item>,

Setter for prices field.
Source§

fn provider_token<T>(self, value: T) -> Self
where T: Into<String>,

Setter for provider_token field.
Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn subscription_period(self, value: Seconds) -> Self

Setter for subscription_period field.
Source§

fn max_tip_amount(self, value: u32) -> Self

Setter for max_tip_amount field.
Source§

fn suggested_tip_amounts<T>(self, value: T) -> Self
where T: IntoIterator<Item = <Vec<u32> as IntoIterator>::Item>,

Setter for suggested_tip_amounts field.
Source§

fn provider_data<T>(self, value: T) -> Self
where T: Into<String>,

Setter for provider_data field.
Source§

fn photo_url<T>(self, value: T) -> Self
where T: Into<String>,

Setter for photo_url field.
Source§

fn photo_size<T>(self, value: T) -> Self
where T: Into<String>,

Setter for photo_size field.
Source§

fn photo_width<T>(self, value: T) -> Self
where T: Into<String>,

Setter for photo_width field.
Source§

fn photo_height<T>(self, value: T) -> Self
where T: Into<String>,

Setter for photo_height field.
Source§

fn need_name(self, value: bool) -> Self

Setter for need_name field.
Source§

fn need_phone_number(self, value: bool) -> Self

Setter for need_phone_number field.
Source§

fn need_email(self, value: bool) -> Self

Setter for need_email field.
Source§

fn need_shipping_address(self, value: bool) -> Self

Setter for need_shipping_address field.
Source§

fn send_phone_number_to_provider(self, value: bool) -> Self

Source§

fn send_email_to_provider(self, value: bool) -> Self

Setter for send_email_to_provider field.
Source§

fn is_flexible(self, value: bool) -> Self

Setter for is_flexible field.
Source§

impl<P> CreateNewStickerSetSetters for P
where P: HasPayload<Payload = CreateNewStickerSet>,

Source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
Source§

fn name<T>(self, value: T) -> Self
where T: Into<String>,

Setter for name field.
Source§

fn title<T>(self, value: T) -> Self
where T: Into<String>,

Setter for title field.
Source§

fn stickers<T>(self, value: T) -> Self
where T: IntoIterator<Item = <Vec<InputSticker> as IntoIterator>::Item>,

Setter for stickers field.
Source§

fn sticker_type(self, value: StickerType) -> Self

Setter for sticker_type field.
Source§

fn needs_repainting(self, value: bool) -> Self

Setter for needs_repainting field.
Source§

impl<P> DeclineChatJoinRequestSetters for P
where P: HasPayload<Payload = DeclineChatJoinRequest>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
Source§

impl<P> DeclineSuggestedPostSetters for P
where P: HasPayload<Payload = DeclineSuggestedPost>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<ChatId>,

Setter for chat_id field.
Source§

fn message_id(self, value: MessageId) -> Self

Setter for message_id field.
Source§

fn comment<T>(self, value: T) -> Self
where T: Into<String>,

Setter for comment field.
Source§

impl<P> DeleteBusinessMessagesSetters for P
where P: HasPayload<Payload = DeleteBusinessMessages>,

Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn message_ids<T>(self, value: T) -> Self
where T: IntoIterator<Item = <Vec<MessageId> as IntoIterator>::Item>,

Setter for message_ids field.
Source§

impl<P> DeleteChatPhotoSetters for P
where P: HasPayload<Payload = DeleteChatPhoto>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

impl<P> DeleteChatStickerSetSetters for P
where P: HasPayload<Payload = DeleteChatStickerSet>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

impl<P> DeleteForumTopicSetters for P
where P: HasPayload<Payload = DeleteForumTopic>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
Source§

impl<P> DeleteMessageSetters for P
where P: HasPayload<Payload = DeleteMessage>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn message_id(self, value: MessageId) -> Self

Setter for message_id field.
Source§

impl<P> DeleteMessagesSetters for P
where P: HasPayload<Payload = DeleteMessages>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn message_ids<T>(self, value: T) -> Self
where T: IntoIterator<Item = <Vec<MessageId> as IntoIterator>::Item>,

Setter for message_ids field.
Source§

impl<P> DeleteMyCommandsSetters for P
where P: HasPayload<Payload = DeleteMyCommands>,

Source§

fn scope(self, value: BotCommandScope) -> Self

Setter for scope field.
Source§

fn language_code<T>(self, value: T) -> Self
where T: Into<String>,

Setter for language_code field.
Source§

impl<P> DeleteStickerFromSetSetters for P
where P: HasPayload<Payload = DeleteStickerFromSet>,

Source§

fn sticker<T>(self, value: T) -> Self
where T: Into<String>,

Setter for sticker field.
Source§

impl<P> DeleteStickerSetSetters for P
where P: HasPayload<Payload = DeleteStickerSet>,

Source§

fn name<T>(self, value: T) -> Self
where T: Into<String>,

Setter for name field.
Source§

impl<P> DeleteStorySetters for P
where P: HasPayload<Payload = DeleteStory>,

Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn story_id(self, value: StoryId) -> Self

Setter for story_id field.
Source§

impl<P> DeleteWebhookSetters for P
where P: HasPayload<Payload = DeleteWebhook>,

Source§

fn drop_pending_updates(self, value: bool) -> Self

Setter for drop_pending_updates field.
Source§

impl<P> EditChatInviteLinkSetters for P
where P: HasPayload<Payload = EditChatInviteLink>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Setter for invite_link field.
Source§

fn name<T>(self, value: T) -> Self
where T: Into<String>,

Setter for name field.
Source§

fn expire_date<T>(self, value: T) -> Self
where T: Into<DateTime<Utc>>,

Setter for expire_date field.
Source§

fn member_limit(self, value: u32) -> Self

Setter for member_limit field.
Source§

fn creates_join_request(self, value: bool) -> Self

Setter for creates_join_request field.
Source§

impl<P> EditChatSubscriptionInviteLinkSetters for P

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Setter for invite_link field.
Source§

fn name<T>(self, value: T) -> Self
where T: Into<String>,

Setter for name field.
Source§

impl<P> EditForumTopicSetters for P
where P: HasPayload<Payload = EditForumTopic>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
Source§

fn name<T>(self, value: T) -> Self
where T: Into<String>,

Setter for name field.
Source§

fn icon_custom_emoji_id(self, value: CustomEmojiId) -> Self

Setter for icon_custom_emoji_id field.
Source§

impl<P> EditGeneralForumTopicSetters for P
where P: HasPayload<Payload = EditGeneralForumTopic>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn name<T>(self, value: T) -> Self
where T: Into<String>,

Setter for name field.
Source§

impl<P> EditMessageCaptionInlineSetters for P

Source§

fn inline_message_id<T>(self, value: T) -> Self
where T: Into<String>,

Setter for inline_message_id field.
Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn caption<T>(self, value: T) -> Self
where T: Into<String>,

Setter for caption field.
Source§

fn parse_mode(self, value: ParseMode) -> Self

Setter for parse_mode field.
Source§

fn caption_entities<T>(self, value: T) -> Self

Setter for caption_entities field.
Source§

fn reply_markup(self, value: InlineKeyboardMarkup) -> Self

Setter for reply_markup field.
Source§

impl<P> EditMessageCaptionSetters for P
where P: HasPayload<Payload = EditMessageCaption>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn message_id(self, value: MessageId) -> Self

Setter for message_id field.
Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn caption<T>(self, value: T) -> Self
where T: Into<String>,

Setter for caption field.
Source§

fn parse_mode(self, value: ParseMode) -> Self

Setter for parse_mode field.
Source§

fn caption_entities<T>(self, value: T) -> Self

Setter for caption_entities field.
Source§

fn show_caption_above_media(self, value: bool) -> Self

Setter for show_caption_above_media field.
Source§

fn reply_markup(self, value: InlineKeyboardMarkup) -> Self

Setter for reply_markup field.
Source§

impl<P> EditMessageChecklistSetters for P
where P: HasPayload<Payload = EditMessageChecklist>,

Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<ChatId>,

Setter for chat_id field.
Source§

fn message_id(self, value: MessageId) -> Self

Setter for message_id field.
Source§

fn checklist(self, value: InputChecklist) -> Self

Setter for checklist field.
Source§

fn reply_markup<T>(self, value: T) -> Self
where T: Into<ReplyMarkup>,

Setter for reply_markup field.
Source§

impl<P> EditMessageLiveLocationInlineSetters for P

Source§

fn inline_message_id<T>(self, value: T) -> Self
where T: Into<String>,

Setter for inline_message_id field.
Source§

fn latitude(self, value: f64) -> Self

Setter for latitude field.
Source§

fn longitude(self, value: f64) -> Self

Setter for longitude field.
Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn horizontal_accuracy(self, value: f64) -> Self

Setter for horizontal_accuracy field.
Source§

fn heading(self, value: u16) -> Self

Setter for heading field.
Source§

fn proximity_alert_radius(self, value: u32) -> Self

Setter for proximity_alert_radius field.
Source§

fn reply_markup<T>(self, value: T) -> Self
where T: Into<ReplyMarkup>,

Setter for reply_markup field.
Source§

impl<P> EditMessageLiveLocationSetters for P
where P: HasPayload<Payload = EditMessageLiveLocation>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn message_id(self, value: MessageId) -> Self

Setter for message_id field.
Source§

fn latitude(self, value: f64) -> Self

Setter for latitude field.
Source§

fn longitude(self, value: f64) -> Self

Setter for longitude field.
Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn live_period(self, value: LivePeriod) -> Self

Setter for live_period field.
Source§

fn horizontal_accuracy(self, value: f64) -> Self

Setter for horizontal_accuracy field.
Source§

fn heading(self, value: u16) -> Self

Setter for heading field.
Source§

fn proximity_alert_radius(self, value: u32) -> Self

Setter for proximity_alert_radius field.
Source§

fn reply_markup<T>(self, value: T) -> Self
where T: Into<ReplyMarkup>,

Setter for reply_markup field.
Source§

impl<P> EditMessageMediaInlineSetters for P
where P: HasPayload<Payload = EditMessageMediaInline>,

Source§

fn inline_message_id<T>(self, value: T) -> Self
where T: Into<String>,

Setter for inline_message_id field.
Source§

fn media(self, value: InputMedia) -> Self

Setter for media field.
Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn reply_markup(self, value: InlineKeyboardMarkup) -> Self

Setter for reply_markup field.
Source§

impl<P> EditMessageMediaSetters for P
where P: HasPayload<Payload = EditMessageMedia>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn message_id(self, value: MessageId) -> Self

Setter for message_id field.
Source§

fn media(self, value: InputMedia) -> Self

Setter for media field.
Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn reply_markup(self, value: InlineKeyboardMarkup) -> Self

Setter for reply_markup field.
Source§

impl<P> EditMessageReplyMarkupInlineSetters for P

Source§

fn inline_message_id<T>(self, value: T) -> Self
where T: Into<String>,

Setter for inline_message_id field.
Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn reply_markup(self, value: InlineKeyboardMarkup) -> Self

Setter for reply_markup field.
Source§

impl<P> EditMessageReplyMarkupSetters for P
where P: HasPayload<Payload = EditMessageReplyMarkup>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn message_id(self, value: MessageId) -> Self

Setter for message_id field.
Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn reply_markup(self, value: InlineKeyboardMarkup) -> Self

Setter for reply_markup field.
Source§

impl<P> EditMessageTextInlineSetters for P
where P: HasPayload<Payload = EditMessageTextInline>,

Source§

fn inline_message_id<T>(self, value: T) -> Self
where T: Into<String>,

Setter for inline_message_id field.
Source§

fn text<T>(self, value: T) -> Self
where T: Into<String>,

Setter for text field.
Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn parse_mode(self, value: ParseMode) -> Self

Setter for parse_mode field.
Source§

fn entities<T>(self, value: T) -> Self

Setter for entities field.
Source§

fn disable_web_page_preview(self, value: bool) -> Self

Setter for disable_web_page_preview field.
Source§

fn reply_markup(self, value: InlineKeyboardMarkup) -> Self

Setter for reply_markup field.
Source§

impl<P> EditMessageTextSetters for P
where P: HasPayload<Payload = EditMessageText>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn message_id(self, value: MessageId) -> Self

Setter for message_id field.
Source§

fn text<T>(self, value: T) -> Self
where T: Into<String>,

Setter for text field.
Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn parse_mode(self, value: ParseMode) -> Self

Setter for parse_mode field.
Source§

fn entities<T>(self, value: T) -> Self

Setter for entities field.
Setter for link_preview_options field.
Source§

fn reply_markup(self, value: InlineKeyboardMarkup) -> Self

Setter for reply_markup field.
Source§

impl<P> EditStorySetters for P
where P: HasPayload<Payload = EditStory>,

Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn story_id(self, value: StoryId) -> Self

Setter for story_id field.
Source§

fn content(self, value: InputStoryContent) -> Self

Setter for content field.
Source§

fn caption<T>(self, value: T) -> Self
where T: Into<String>,

Setter for caption field.
Source§

fn parse_mode(self, value: ParseMode) -> Self

Setter for parse_mode field.
Source§

fn caption_entities<T>(self, value: T) -> Self

Setter for caption_entities field.
Source§

fn areas<T>(self, value: T) -> Self
where T: IntoIterator<Item = <Vec<StoryArea> as IntoIterator>::Item>,

Setter for areas field.
Source§

impl<P> EditUserStarSubscriptionSetters for P

Source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
Source§

fn telegram_payment_charge_id(self, value: TelegramTransactionId) -> Self

Setter for telegram_payment_charge_id field.
Source§

fn is_canceled(self, value: bool) -> Self

Setter for is_canceled field.
Source§

impl<T> Erasable for T

Source§

const ACK_1_1_0: bool = true

Available on non-enforce_1_1_0_semantics only.
Whether this implementor has acknowledged the 1.1.0 update to unerase’s documented implementation requirements. Read more
Source§

unsafe fn unerase(this: NonNull<Erased>) -> NonNull<T>

Unerase this erased pointer. Read more
Source§

fn erase(this: NonNull<Self>) -> NonNull<Erased>

Turn this erasable pointer into an erased pointer. Read more
Source§

impl<P> ExportChatInviteLinkSetters for P
where P: HasPayload<Payload = ExportChatInviteLink>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

impl<P> ForwardMessageSetters for P
where P: HasPayload<Payload = ForwardMessage>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn from_chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for from_chat_id field.
Source§

fn message_id(self, value: MessageId) -> Self

Setter for message_id field.
Source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
Source§

fn video_start_timestamp(self, value: Seconds) -> Self

Setter for video_start_timestamp field.
Source§

fn disable_notification(self, value: bool) -> Self

Setter for disable_notification field.
Source§

fn protect_content(self, value: bool) -> Self

Setter for protect_content field.
Source§

fn message_effect_id(self, value: EffectId) -> Self

Setter for message_effect_id field.
Source§

impl<P> ForwardMessagesSetters for P
where P: HasPayload<Payload = ForwardMessages>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn from_chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for from_chat_id field.
Source§

fn message_ids<T>(self, value: T) -> Self
where T: IntoIterator<Item = <Vec<MessageId> as IntoIterator>::Item>,

Setter for message_ids field.
Source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
Source§

fn disable_notification(self, value: bool) -> Self

Setter for disable_notification field.
Source§

fn protect_content(self, value: bool) -> Self

Setter for protect_content field.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<P> GetBusinessAccountGiftsSetters for P
where P: HasPayload<Payload = GetBusinessAccountGifts>,

Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn exclude_unsaved(self, value: bool) -> Self

Setter for exclude_unsaved field.
Source§

fn exclude_saved(self, value: bool) -> Self

Setter for exclude_saved field.
Source§

fn exclude_unlimited(self, value: bool) -> Self

Setter for exclude_unlimited field.
Source§

fn exclude_limited_upgradable(self, value: bool) -> Self

Setter for exclude_limited_upgradable field.
Source§

fn exclude_limited_non_upgradable(self, value: bool) -> Self

Source§

fn exclude_unique(self, value: bool) -> Self

Setter for exclude_unique field.
Source§

fn exclude_from_blockchain(self, value: bool) -> Self

Setter for exclude_from_blockchain field.
Source§

fn sort_by_price(self, value: bool) -> Self

Setter for sort_by_price field.
Source§

fn offset<T>(self, value: T) -> Self
where T: Into<String>,

Setter for offset field.
Source§

fn limit(self, value: u8) -> Self

Setter for limit field.
Source§

impl<P> GetBusinessAccountStarBalanceSetters for P

Source§

impl<P> GetBusinessConnectionSetters for P
where P: HasPayload<Payload = GetBusinessConnection>,

Source§

impl<P> GetChatAdministratorsSetters for P
where P: HasPayload<Payload = GetChatAdministrators>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

impl<P> GetChatGiftsSetters for P
where P: HasPayload<Payload = GetChatGifts>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn exclude_unsaved(self, value: bool) -> Self

Setter for exclude_unsaved field.
Source§

fn exclude_saved(self, value: bool) -> Self

Setter for exclude_saved field.
Source§

fn exclude_unlimited(self, value: bool) -> Self

Setter for exclude_unlimited field.
Source§

fn exclude_limited_upgradable(self, value: bool) -> Self

Setter for exclude_limited_upgradable field.
Source§

fn exclude_limited_non_upgradable(self, value: bool) -> Self

Source§

fn exclude_from_blockchain(self, value: bool) -> Self

Setter for exclude_from_blockchain field.
Source§

fn exclude_unique(self, value: bool) -> Self

Setter for exclude_unique field.
Source§

fn sort_by_price(self, value: bool) -> Self

Setter for sort_by_price field.
Source§

fn offset<T>(self, value: T) -> Self
where T: Into<String>,

Setter for offset field.
Source§

fn limit(self, value: u8) -> Self

Setter for limit field.
Source§

impl<P> GetChatMemberCountSetters for P
where P: HasPayload<Payload = GetChatMemberCount>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

impl<P> GetChatMemberSetters for P
where P: HasPayload<Payload = GetChatMember>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
Source§

impl<P> GetChatMembersCountSetters for P
where P: HasPayload<Payload = GetChatMembersCount>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

impl<P> GetChatMenuButtonSetters for P
where P: HasPayload<Payload = GetChatMenuButton>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<ChatId>,

Setter for chat_id field.
Source§

impl<P> GetChatSetters for P
where P: HasPayload<Payload = GetChat>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

impl<P> GetCustomEmojiStickersSetters for P
where P: HasPayload<Payload = GetCustomEmojiStickers>,

Source§

fn custom_emoji_ids<T>(self, value: T) -> Self

Setter for custom_emoji_ids field.
Source§

impl<P> GetFileSetters for P
where P: HasPayload<Payload = GetFile>,

Source§

fn file_id(self, value: FileId) -> Self

Setter for file_id field.
Source§

impl<P> GetGameHighScoresSetters for P
where P: HasPayload<Payload = GetGameHighScores>,

Source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
Source§

fn target<T>(self, value: T) -> Self
where T: Into<TargetMessage>,

Setter for target field.
Source§

impl<P> GetMyCommandsSetters for P
where P: HasPayload<Payload = GetMyCommands>,

Source§

fn scope(self, value: BotCommandScope) -> Self

Setter for scope field.
Source§

fn language_code<T>(self, value: T) -> Self
where T: Into<String>,

Setter for language_code field.
Source§

impl<P> GetMyDefaultAdministratorRightsSetters for P

Source§

fn for_channels(self, value: bool) -> Self

Setter for for_channels field.
Source§

impl<P> GetMyDescriptionSetters for P
where P: HasPayload<Payload = GetMyDescription>,

Source§

fn language_code<T>(self, value: T) -> Self
where T: Into<String>,

Setter for language_code field.
Source§

impl<P> GetMyNameSetters for P
where P: HasPayload<Payload = GetMyName>,

Source§

fn language_code<T>(self, value: T) -> Self
where T: Into<String>,

Setter for language_code field.
Source§

impl<P> GetMyShortDescriptionSetters for P
where P: HasPayload<Payload = GetMyShortDescription>,

Source§

fn language_code<T>(self, value: T) -> Self
where T: Into<String>,

Setter for language_code field.
Source§

impl<P> GetStarTransactionsSetters for P
where P: HasPayload<Payload = GetStarTransactions>,

Source§

fn offset(self, value: u32) -> Self

Setter for offset field.
Source§

fn limit(self, value: u8) -> Self

Setter for limit field.
Source§

impl<P> GetStickerSetSetters for P
where P: HasPayload<Payload = GetStickerSet>,

Source§

fn name<T>(self, value: T) -> Self
where T: Into<String>,

Setter for name field.
Source§

impl<P> GetUpdatesSetters for P
where P: HasPayload<Payload = GetUpdates>,

Source§

fn offset(self, value: i32) -> Self

Setter for offset field.
Source§

fn limit(self, value: u8) -> Self

Setter for limit field.
Source§

fn timeout(self, value: u32) -> Self

Setter for timeout field.
Source§

fn allowed_updates<T>(self, value: T) -> Self

Setter for allowed_updates field.
Source§

impl<P> GetUserChatBoostsSetters for P
where P: HasPayload<Payload = GetUserChatBoosts>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
Source§

impl<P> GetUserGiftsSetters for P
where P: HasPayload<Payload = GetUserGifts>,

Source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
Source§

fn exclude_unlimited(self, value: bool) -> Self

Setter for exclude_unlimited field.
Source§

fn exclude_limited_upgradable(self, value: bool) -> Self

Setter for exclude_limited_upgradable field.
Source§

fn exclude_limited_non_upgradable(self, value: bool) -> Self

Source§

fn exclude_from_blockchain(self, value: bool) -> Self

Setter for exclude_from_blockchain field.
Source§

fn exclude_unique(self, value: bool) -> Self

Setter for exclude_unique field.
Source§

fn sort_by_price(self, value: bool) -> Self

Setter for sort_by_price field.
Source§

fn offset<T>(self, value: T) -> Self
where T: Into<String>,

Setter for offset field.
Source§

fn limit(self, value: u8) -> Self

Setter for limit field.
Source§

impl<P> GetUserProfilePhotosSetters for P
where P: HasPayload<Payload = GetUserProfilePhotos>,

Source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
Source§

fn offset(self, value: u32) -> Self

Setter for offset field.
Source§

fn limit(self, value: u8) -> Self

Setter for limit field.
Source§

impl<P> GiftPremiumSubscriptionSetters for P
where P: HasPayload<Payload = GiftPremiumSubscription>,

Source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
Source§

fn month_count(self, value: u8) -> Self

Setter for month_count field.
Source§

fn star_count(self, value: u32) -> Self

Setter for star_count field.
Source§

fn text<T>(self, value: T) -> Self
where T: Into<String>,

Setter for text field.
Source§

fn text_parse_mode(self, value: ParseMode) -> Self

Setter for text_parse_mode field.
Source§

fn text_entities<T>(self, value: T) -> Self

Setter for text_entities field.
Source§

impl<P> HideGeneralForumTopicSetters for P
where P: HasPayload<Payload = HideGeneralForumTopic>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<P> KickChatMemberSetters for P
where P: HasPayload<Payload = KickChatMember>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
Source§

fn until_date<T>(self, value: T) -> Self
where T: Into<DateTime<Utc>>,

Setter for until_date field.
Source§

fn revoke_messages(self, value: bool) -> Self

Setter for revoke_messages field.
Source§

impl<P> LeaveChatSetters for P
where P: HasPayload<Payload = LeaveChat>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

impl<P> PinChatMessageSetters for P
where P: HasPayload<Payload = PinChatMessage>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn message_id(self, value: MessageId) -> Self

Setter for message_id field.
Source§

fn disable_notification(self, value: bool) -> Self

Setter for disable_notification field.
Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

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

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<P> PostStorySetters for P
where P: HasPayload<Payload = PostStory>,

Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn content(self, value: InputStoryContent) -> Self

Setter for content field.
Source§

fn active_period(self, value: Seconds) -> Self

Setter for active_period field.
Source§

fn caption<T>(self, value: T) -> Self
where T: Into<String>,

Setter for caption field.
Source§

fn parse_mode(self, value: ParseMode) -> Self

Setter for parse_mode field.
Source§

fn caption_entities<T>(self, value: T) -> Self

Setter for caption_entities field.
Source§

fn areas<T>(self, value: T) -> Self
where T: IntoIterator<Item = <Vec<StoryArea> as IntoIterator>::Item>,

Setter for areas field.
Source§

fn post_to_chat_page(self, value: bool) -> Self

Setter for post_to_chat_page field.
Source§

fn protect_content(self, value: bool) -> Self

Setter for protect_content field.
Source§

impl<P> PromoteChatMemberSetters for P
where P: HasPayload<Payload = PromoteChatMember>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
Source§

fn is_anonymous(self, value: bool) -> Self

Setter for is_anonymous field.
Source§

fn can_manage_chat(self, value: bool) -> Self

Setter for can_manage_chat field.
Source§

fn can_post_messages(self, value: bool) -> Self

Setter for can_post_messages field.
Source§

fn can_edit_messages(self, value: bool) -> Self

Setter for can_edit_messages field.
Source§

fn can_delete_messages(self, value: bool) -> Self

Setter for can_delete_messages field.
Source§

fn can_post_stories(self, value: bool) -> Self

Setter for can_post_stories field.
Source§

fn can_edit_stories(self, value: bool) -> Self

Setter for can_edit_stories field.
Source§

fn can_delete_stories(self, value: bool) -> Self

Setter for can_delete_stories field.
Source§

fn can_manage_video_chats(self, value: bool) -> Self

Setter for can_manage_video_chats field.
Source§

fn can_restrict_members(self, value: bool) -> Self

Setter for can_restrict_members field.
Source§

fn can_promote_members(self, value: bool) -> Self

Setter for can_promote_members field.
Source§

fn can_change_info(self, value: bool) -> Self

Setter for can_change_info field.
Source§

fn can_invite_users(self, value: bool) -> Self

Setter for can_invite_users field.
Source§

fn can_pin_messages(self, value: bool) -> Self

Setter for can_pin_messages field.
Source§

fn can_manage_topics(self, value: bool) -> Self

Setter for can_manage_topics field.
Source§

impl<P> ReadBusinessMessageSetters for P
where P: HasPayload<Payload = ReadBusinessMessage>,

Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<ChatId>,

Setter for chat_id field.
Source§

fn message_id(self, value: MessageId) -> Self

Setter for message_id field.
Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<P> RefundStarPaymentSetters for P
where P: HasPayload<Payload = RefundStarPayment>,

Source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
Source§

fn telegram_payment_charge_id(self, value: TelegramTransactionId) -> Self

Setter for telegram_payment_charge_id field.
Source§

impl<P> RemoveBusinessAccountProfilePhotoSetters for P

Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn is_public(self, value: bool) -> Self

Setter for is_public field.
Source§

impl<P> RemoveChatVerificationSetters for P
where P: HasPayload<Payload = RemoveChatVerification>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

impl<P> RemoveUserVerificationSetters for P
where P: HasPayload<Payload = RemoveUserVerification>,

Source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
Source§

impl<P> ReopenForumTopicSetters for P
where P: HasPayload<Payload = ReopenForumTopic>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
Source§

impl<P> ReopenGeneralForumTopicSetters for P
where P: HasPayload<Payload = ReopenGeneralForumTopic>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

impl<P> ReplaceStickerInSetSetters for P
where P: HasPayload<Payload = ReplaceStickerInSet>,

Source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
Source§

fn name<T>(self, value: T) -> Self
where T: Into<String>,

Setter for name field.
Source§

fn old_sticker<T>(self, value: T) -> Self
where T: Into<String>,

Setter for old_sticker field.
Source§

fn sticker(self, value: InputSticker) -> Self

Setter for sticker field.
Source§

impl<P> RepostStorySetters for P
where P: HasPayload<Payload = RepostStory>,

Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn from_chat_id<T>(self, value: T) -> Self
where T: Into<ChatId>,

Setter for from_chat_id field.
Source§

fn from_story_id(self, value: StoryId) -> Self

Setter for from_story_id field.
Source§

fn active_period(self, value: Seconds) -> Self

Setter for active_period field.
Source§

fn post_to_chat_page(self, value: bool) -> Self

Setter for post_to_chat_page field.
Source§

fn protect_content(self, value: bool) -> Self

Setter for protect_content field.
Source§

impl<T> RequestLinkPreviewExt<EditMessageText> for T

Replaces .link_preview_options(LinkPreviewOptions { is_disabled: true, url: None, prefer_small_media: false, prefer_large_media: false, show_above_text: false };) Read more
Source§

impl<T> RequestLinkPreviewExt<SendMessage> for T

Replaces .link_preview_options(LinkPreviewOptions { is_disabled: true, url: None, prefer_small_media: false, prefer_large_media: false, show_above_text: false };) Read more
Source§

impl<T> RequestReplyExt<CopyMessage> for T

Source§

fn reply_to<M>(self, message_id: M) -> T
where M: Into<MessageId>,

Replaces .reply_parameters(ReplyParameters::new(msg.id)) with .reply_to(msg.id) or .reply_to(msg)
Source§

impl<T> RequestReplyExt<SendAnimation> for T

Source§

fn reply_to<M>(self, message_id: M) -> T
where M: Into<MessageId>,

Replaces .reply_parameters(ReplyParameters::new(msg.id)) with .reply_to(msg.id) or .reply_to(msg)
Source§

impl<T> RequestReplyExt<SendAudio> for T

Source§

fn reply_to<M>(self, message_id: M) -> T
where M: Into<MessageId>,

Replaces .reply_parameters(ReplyParameters::new(msg.id)) with .reply_to(msg.id) or .reply_to(msg)
Source§

impl<T> RequestReplyExt<SendContact> for T

Source§

fn reply_to<M>(self, message_id: M) -> T
where M: Into<MessageId>,

Replaces .reply_parameters(ReplyParameters::new(msg.id)) with .reply_to(msg.id) or .reply_to(msg)
Source§

impl<T> RequestReplyExt<SendDice> for T
where T: SendDiceSetters,

Source§

fn reply_to<M>(self, message_id: M) -> T
where M: Into<MessageId>,

Replaces .reply_parameters(ReplyParameters::new(msg.id)) with .reply_to(msg.id) or .reply_to(msg)
Source§

impl<T> RequestReplyExt<SendDocument> for T

Source§

fn reply_to<M>(self, message_id: M) -> T
where M: Into<MessageId>,

Replaces .reply_parameters(ReplyParameters::new(msg.id)) with .reply_to(msg.id) or .reply_to(msg)
Source§

impl<T> RequestReplyExt<SendGame> for T
where T: SendGameSetters,

Source§

fn reply_to<M>(self, message_id: M) -> T
where M: Into<MessageId>,

Replaces .reply_parameters(ReplyParameters::new(msg.id)) with .reply_to(msg.id) or .reply_to(msg)
Source§

impl<T> RequestReplyExt<SendInvoice> for T

Source§

fn reply_to<M>(self, message_id: M) -> T
where M: Into<MessageId>,

Replaces .reply_parameters(ReplyParameters::new(msg.id)) with .reply_to(msg.id) or .reply_to(msg)
Source§

impl<T> RequestReplyExt<SendLocation> for T

Source§

fn reply_to<M>(self, message_id: M) -> T
where M: Into<MessageId>,

Replaces .reply_parameters(ReplyParameters::new(msg.id)) with .reply_to(msg.id) or .reply_to(msg)
Source§

impl<T> RequestReplyExt<SendMediaGroup> for T

Source§

fn reply_to<M>(self, message_id: M) -> T
where M: Into<MessageId>,

Replaces .reply_parameters(ReplyParameters::new(msg.id)) with .reply_to(msg.id) or .reply_to(msg)
Source§

impl<T> RequestReplyExt<SendMessage> for T

Source§

fn reply_to<M>(self, message_id: M) -> T
where M: Into<MessageId>,

Replaces .reply_parameters(ReplyParameters::new(msg.id)) with .reply_to(msg.id) or .reply_to(msg)
Source§

impl<T> RequestReplyExt<SendPhoto> for T

Source§

fn reply_to<M>(self, message_id: M) -> T
where M: Into<MessageId>,

Replaces .reply_parameters(ReplyParameters::new(msg.id)) with .reply_to(msg.id) or .reply_to(msg)
Source§

impl<T> RequestReplyExt<SendPoll> for T
where T: SendPollSetters,

Source§

fn reply_to<M>(self, message_id: M) -> T
where M: Into<MessageId>,

Replaces .reply_parameters(ReplyParameters::new(msg.id)) with .reply_to(msg.id) or .reply_to(msg)
Source§

impl<T> RequestReplyExt<SendSticker> for T

Source§

fn reply_to<M>(self, message_id: M) -> T
where M: Into<MessageId>,

Replaces .reply_parameters(ReplyParameters::new(msg.id)) with .reply_to(msg.id) or .reply_to(msg)
Source§

impl<T> RequestReplyExt<SendVenue> for T

Source§

fn reply_to<M>(self, message_id: M) -> T
where M: Into<MessageId>,

Replaces .reply_parameters(ReplyParameters::new(msg.id)) with .reply_to(msg.id) or .reply_to(msg)
Source§

impl<T> RequestReplyExt<SendVideo> for T

Source§

fn reply_to<M>(self, message_id: M) -> T
where M: Into<MessageId>,

Replaces .reply_parameters(ReplyParameters::new(msg.id)) with .reply_to(msg.id) or .reply_to(msg)
Source§

impl<T> RequestReplyExt<SendVideoNote> for T

Source§

fn reply_to<M>(self, message_id: M) -> T
where M: Into<MessageId>,

Replaces .reply_parameters(ReplyParameters::new(msg.id)) with .reply_to(msg.id) or .reply_to(msg)
Source§

impl<T> RequestReplyExt<SendVoice> for T

Source§

fn reply_to<M>(self, message_id: M) -> T
where M: Into<MessageId>,

Replaces .reply_parameters(ReplyParameters::new(msg.id)) with .reply_to(msg.id) or .reply_to(msg)
Source§

impl<P> RestrictChatMemberSetters for P
where P: HasPayload<Payload = RestrictChatMember>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
Source§

fn permissions(self, value: ChatPermissions) -> Self

Setter for permissions field.
Source§

fn use_independent_chat_permissions(self, value: bool) -> Self

Source§

fn until_date<T>(self, value: T) -> Self
where T: Into<DateTime<Utc>>,

Setter for until_date field.
Source§

impl<P> RevokeChatInviteLinkSetters for P
where P: HasPayload<Payload = RevokeChatInviteLink>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Setter for invite_link field.
Source§

impl<R> Rng for R
where R: TryRng<Error = Infallible> + ?Sized,

Source§

fn next_u32(&mut self) -> u32

Return the next random u32.
Source§

fn next_u64(&mut self) -> u64

Return the next random u64.
Source§

fn fill_bytes(&mut self, dst: &mut [u8])

Fill dest with random data. Read more
Source§

impl<R> RngExt for R
where R: Rng + ?Sized,

Source§

fn random<T>(&mut self) -> T

Return a random value via the StandardUniform distribution. Read more
Source§

fn random_iter<T>(self) -> Iter<StandardUniform, Self, T>

Return an iterator over random variates Read more
Source§

fn random_range<T, R>(&mut self, range: R) -> T
where T: SampleUniform, R: SampleRange<T>,

Generate a random value in the given range. Read more
Source§

fn random_bool(&mut self, p: f64) -> bool

Return a bool with a probability p of being true. Read more
Source§

fn random_ratio(&mut self, numerator: u32, denominator: u32) -> bool

Return a bool with a probability of numerator/denominator of being true. Read more
Source§

fn sample<T, D>(&mut self, distr: D) -> T
where D: Distribution<T>,

Sample a new value, using the given distribution. Read more
Source§

fn sample_iter<T, D>(self, distr: D) -> Iter<D, Self, T>
where D: Distribution<T>, Self: Sized,

Create an iterator that generates values using the given distribution. Read more
Source§

fn fill<T>(&mut self, dest: &mut [T])
where T: Fill,

Fill any type implementing Fill with random data Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<P> SavePreparedInlineMessageSetters for P

Source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
Source§

fn result(self, value: InlineQueryResult) -> Self

Setter for result field.
Source§

fn allow_user_chats(self, value: bool) -> Self

Setter for allow_user_chats field.
Source§

fn allow_bot_chats(self, value: bool) -> Self

Setter for allow_bot_chats field.
Source§

fn allow_group_chats(self, value: bool) -> Self

Setter for allow_group_chats field.
Source§

fn allow_channel_chats(self, value: bool) -> Self

Setter for allow_channel_chats field.
Source§

impl<P> SendAnimationSetters for P
where P: HasPayload<Payload = SendAnimation>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn animation(self, value: InputFile) -> Self

Setter for animation field.
Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
Source§

fn duration(self, value: u32) -> Self

Setter for duration field.
Source§

fn width(self, value: u32) -> Self

Setter for width field.
Source§

fn height(self, value: u32) -> Self

Setter for height field.
Source§

fn thumbnail(self, value: InputFile) -> Self

Setter for thumbnail field.
Source§

fn caption<T>(self, value: T) -> Self
where T: Into<String>,

Setter for caption field.
Source§

fn parse_mode(self, value: ParseMode) -> Self

Setter for parse_mode field.
Source§

fn caption_entities<T>(self, value: T) -> Self

Setter for caption_entities field.
Source§

fn show_caption_above_media(self, value: bool) -> Self

Setter for show_caption_above_media field.
Source§

fn has_spoiler(self, value: bool) -> Self

Setter for has_spoiler field.
Source§

fn disable_notification(self, value: bool) -> Self

Setter for disable_notification field.
Source§

fn protect_content(self, value: bool) -> Self

Setter for protect_content field.
Source§

fn allow_paid_broadcast(self, value: bool) -> Self

Setter for allow_paid_broadcast field.
Source§

fn message_effect_id(self, value: EffectId) -> Self

Setter for message_effect_id field.
Source§

fn reply_parameters(self, value: ReplyParameters) -> Self

Setter for reply_parameters field.
Source§

fn reply_markup<T>(self, value: T) -> Self
where T: Into<ReplyMarkup>,

Setter for reply_markup field.
Source§

impl<P> SendAudioSetters for P
where P: HasPayload<Payload = SendAudio>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn audio(self, value: InputFile) -> Self

Setter for audio field.
Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
Source§

fn caption<T>(self, value: T) -> Self
where T: Into<String>,

Setter for caption field.
Source§

fn parse_mode(self, value: ParseMode) -> Self

Setter for parse_mode field.
Source§

fn caption_entities<T>(self, value: T) -> Self

Setter for caption_entities field.
Source§

fn duration(self, value: u32) -> Self

Setter for duration field.
Source§

fn performer<T>(self, value: T) -> Self
where T: Into<String>,

Setter for performer field.
Source§

fn title<T>(self, value: T) -> Self
where T: Into<String>,

Setter for title field.
Source§

fn thumbnail(self, value: InputFile) -> Self

Setter for thumbnail field.
Source§

fn disable_notification(self, value: bool) -> Self

Setter for disable_notification field.
Source§

fn protect_content(self, value: bool) -> Self

Setter for protect_content field.
Source§

fn allow_paid_broadcast(self, value: bool) -> Self

Setter for allow_paid_broadcast field.
Source§

fn message_effect_id(self, value: EffectId) -> Self

Setter for message_effect_id field.
Source§

fn reply_parameters(self, value: ReplyParameters) -> Self

Setter for reply_parameters field.
Source§

fn reply_markup<T>(self, value: T) -> Self
where T: Into<ReplyMarkup>,

Setter for reply_markup field.
Source§

impl<P> SendChatActionSetters for P
where P: HasPayload<Payload = SendChatAction>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn action(self, value: ChatAction) -> Self

Setter for action field.
Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
Source§

impl<P> SendChecklistSetters for P
where P: HasPayload<Payload = SendChecklist>,

Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<ChatId>,

Setter for chat_id field.
Source§

fn checklist(self, value: InputChecklist) -> Self

Setter for checklist field.
Source§

fn disable_notification(self, value: bool) -> Self

Setter for disable_notification field.
Source§

fn protect_content(self, value: bool) -> Self

Setter for protect_content field.
Source§

fn message_effect_id(self, value: EffectId) -> Self

Setter for message_effect_id field.
Source§

fn reply_parameters(self, value: ReplyParameters) -> Self

Setter for reply_parameters field.
Source§

fn reply_markup<T>(self, value: T) -> Self
where T: Into<ReplyMarkup>,

Setter for reply_markup field.
Source§

impl<P> SendContactSetters for P
where P: HasPayload<Payload = SendContact>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn phone_number<T>(self, value: T) -> Self
where T: Into<String>,

Setter for phone_number field.
Source§

fn first_name<T>(self, value: T) -> Self
where T: Into<String>,

Setter for first_name field.
Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
Source§

fn last_name<T>(self, value: T) -> Self
where T: Into<String>,

Setter for last_name field.
Source§

fn vcard<T>(self, value: T) -> Self
where T: Into<String>,

Setter for vcard field.
Source§

fn disable_notification(self, value: bool) -> Self

Setter for disable_notification field.
Source§

fn protect_content(self, value: bool) -> Self

Setter for protect_content field.
Source§

fn allow_paid_broadcast(self, value: bool) -> Self

Setter for allow_paid_broadcast field.
Source§

fn message_effect_id(self, value: EffectId) -> Self

Setter for message_effect_id field.
Source§

fn reply_parameters(self, value: ReplyParameters) -> Self

Setter for reply_parameters field.
Source§

fn reply_markup<T>(self, value: T) -> Self
where T: Into<ReplyMarkup>,

Setter for reply_markup field.
Source§

impl<P> SendDiceSetters for P
where P: HasPayload<Payload = SendDice>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
Source§

fn emoji(self, value: DiceEmoji) -> Self

Setter for emoji field.
Source§

fn disable_notification(self, value: bool) -> Self

Setter for disable_notification field.
Source§

fn protect_content(self, value: bool) -> Self

Setter for protect_content field.
Source§

fn allow_paid_broadcast(self, value: bool) -> Self

Setter for allow_paid_broadcast field.
Source§

fn message_effect_id(self, value: EffectId) -> Self

Setter for message_effect_id field.
Source§

fn reply_parameters(self, value: ReplyParameters) -> Self

Setter for reply_parameters field.
Source§

fn reply_markup<T>(self, value: T) -> Self
where T: Into<ReplyMarkup>,

Setter for reply_markup field.
Source§

impl<P> SendDocumentSetters for P
where P: HasPayload<Payload = SendDocument>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn document(self, value: InputFile) -> Self

Setter for document field.
Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
Source§

fn thumbnail(self, value: InputFile) -> Self

Setter for thumbnail field.
Source§

fn caption<T>(self, value: T) -> Self
where T: Into<String>,

Setter for caption field.
Source§

fn parse_mode(self, value: ParseMode) -> Self

Setter for parse_mode field.
Source§

fn caption_entities<T>(self, value: T) -> Self

Setter for caption_entities field.
Source§

fn disable_content_type_detection(self, value: bool) -> Self

Source§

fn disable_notification(self, value: bool) -> Self

Setter for disable_notification field.
Source§

fn protect_content(self, value: bool) -> Self

Setter for protect_content field.
Source§

fn allow_paid_broadcast(self, value: bool) -> Self

Setter for allow_paid_broadcast field.
Source§

fn message_effect_id(self, value: EffectId) -> Self

Setter for message_effect_id field.
Source§

fn reply_parameters(self, value: ReplyParameters) -> Self

Setter for reply_parameters field.
Source§

fn reply_markup<T>(self, value: T) -> Self
where T: Into<ReplyMarkup>,

Setter for reply_markup field.
Source§

impl<P> SendGameSetters for P
where P: HasPayload<Payload = SendGame>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<ChatId>,

Setter for chat_id field.
Source§

fn game_short_name<T>(self, value: T) -> Self
where T: Into<String>,

Setter for game_short_name field.
Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
Source§

fn disable_notification(self, value: bool) -> Self

Setter for disable_notification field.
Source§

fn protect_content(self, value: bool) -> Self

Setter for protect_content field.
Source§

fn allow_paid_broadcast(self, value: bool) -> Self

Setter for allow_paid_broadcast field.
Source§

fn message_effect_id(self, value: EffectId) -> Self

Setter for message_effect_id field.
Source§

fn reply_parameters(self, value: ReplyParameters) -> Self

Setter for reply_parameters field.
Source§

fn reply_markup<T>(self, value: T) -> Self
where T: Into<ReplyMarkup>,

Setter for reply_markup field.
Source§

impl<P> SendGiftChatSetters for P
where P: HasPayload<Payload = SendGiftChat>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn gift_id(self, value: GiftId) -> Self

Setter for gift_id field.
Source§

fn pay_for_upgrade(self, value: bool) -> Self

Setter for pay_for_upgrade field.
Source§

fn text<T>(self, value: T) -> Self
where T: Into<String>,

Setter for text field.
Source§

fn text_parse_mode(self, value: ParseMode) -> Self

Setter for text_parse_mode field.
Source§

fn text_entities<T>(self, value: T) -> Self

Setter for text_entities field.
Source§

impl<P> SendGiftSetters for P
where P: HasPayload<Payload = SendGift>,

Source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
Source§

fn gift_id(self, value: GiftId) -> Self

Setter for gift_id field.
Source§

fn pay_for_upgrade(self, value: bool) -> Self

Setter for pay_for_upgrade field.
Source§

fn text<T>(self, value: T) -> Self
where T: Into<String>,

Setter for text field.
Source§

fn text_parse_mode(self, value: ParseMode) -> Self

Setter for text_parse_mode field.
Source§

fn text_entities<T>(self, value: T) -> Self

Setter for text_entities field.
Source§

impl<P> SendInvoiceSetters for P
where P: HasPayload<Payload = SendInvoice>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn title<T>(self, value: T) -> Self
where T: Into<String>,

Setter for title field.
Source§

fn description<T>(self, value: T) -> Self
where T: Into<String>,

Setter for description field.
Source§

fn payload<T>(self, value: T) -> Self
where T: Into<String>,

Setter for payload field.
Source§

fn currency<T>(self, value: T) -> Self
where T: Into<String>,

Setter for currency field.
Source§

fn prices<T>(self, value: T) -> Self
where T: IntoIterator<Item = <Vec<LabeledPrice> as IntoIterator>::Item>,

Setter for prices field.
Source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
Source§

fn provider_token<T>(self, value: T) -> Self
where T: Into<String>,

Setter for provider_token field.
Source§

fn max_tip_amount(self, value: u32) -> Self

Setter for max_tip_amount field.
Source§

fn suggested_tip_amounts<T>(self, value: T) -> Self
where T: IntoIterator<Item = <Vec<u32> as IntoIterator>::Item>,

Setter for suggested_tip_amounts field.
Source§

fn start_parameter<T>(self, value: T) -> Self
where T: Into<String>,

Setter for start_parameter field.
Source§

fn provider_data<T>(self, value: T) -> Self
where T: Into<String>,

Setter for provider_data field.
Source§

fn photo_url(self, value: Url) -> Self

Setter for photo_url field.
Source§

fn photo_size(self, value: u32) -> Self

Setter for photo_size field.
Source§

fn photo_width(self, value: u32) -> Self

Setter for photo_width field.
Source§

fn photo_height(self, value: u32) -> Self

Setter for photo_height field.
Source§

fn need_name(self, value: bool) -> Self

Setter for need_name field.
Source§

fn need_phone_number(self, value: bool) -> Self

Setter for need_phone_number field.
Source§

fn need_email(self, value: bool) -> Self

Setter for need_email field.
Source§

fn need_shipping_address(self, value: bool) -> Self

Setter for need_shipping_address field.
Source§

fn send_phone_number_to_provider(self, value: bool) -> Self

Source§

fn send_email_to_provider(self, value: bool) -> Self

Setter for send_email_to_provider field.
Source§

fn is_flexible(self, value: bool) -> Self

Setter for is_flexible field.
Source§

fn disable_notification(self, value: bool) -> Self

Setter for disable_notification field.
Source§

fn protect_content(self, value: bool) -> Self

Setter for protect_content field.
Source§

fn allow_paid_broadcast(self, value: bool) -> Self

Setter for allow_paid_broadcast field.
Source§

fn message_effect_id(self, value: EffectId) -> Self

Setter for message_effect_id field.
Source§

fn reply_parameters(self, value: ReplyParameters) -> Self

Setter for reply_parameters field.
Source§

fn reply_markup(self, value: InlineKeyboardMarkup) -> Self

Setter for reply_markup field.
Source§

impl<P> SendLocationSetters for P
where P: HasPayload<Payload = SendLocation>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn latitude(self, value: f64) -> Self

Setter for latitude field.
Source§

fn longitude(self, value: f64) -> Self

Setter for longitude field.
Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
Source§

fn horizontal_accuracy(self, value: f64) -> Self

Setter for horizontal_accuracy field.
Source§

fn live_period(self, value: LivePeriod) -> Self

Setter for live_period field.
Source§

fn heading(self, value: u16) -> Self

Setter for heading field.
Source§

fn proximity_alert_radius(self, value: u32) -> Self

Setter for proximity_alert_radius field.
Source§

fn disable_notification(self, value: bool) -> Self

Setter for disable_notification field.
Source§

fn protect_content(self, value: bool) -> Self

Setter for protect_content field.
Source§

fn allow_paid_broadcast(self, value: bool) -> Self

Setter for allow_paid_broadcast field.
Source§

fn message_effect_id(self, value: EffectId) -> Self

Setter for message_effect_id field.
Source§

fn reply_parameters(self, value: ReplyParameters) -> Self

Setter for reply_parameters field.
Source§

fn reply_markup<T>(self, value: T) -> Self
where T: Into<ReplyMarkup>,

Setter for reply_markup field.
Source§

impl<P> SendMediaGroupSetters for P
where P: HasPayload<Payload = SendMediaGroup>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn media<T>(self, value: T) -> Self
where T: IntoIterator<Item = <Vec<InputMedia> as IntoIterator>::Item>,

Setter for media field.
Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
Source§

fn disable_notification(self, value: bool) -> Self

Setter for disable_notification field.
Source§

fn protect_content(self, value: bool) -> Self

Setter for protect_content field.
Source§

fn allow_paid_broadcast(self, value: bool) -> Self

Setter for allow_paid_broadcast field.
Source§

fn message_effect_id(self, value: EffectId) -> Self

Setter for message_effect_id field.
Source§

fn reply_parameters(self, value: ReplyParameters) -> Self

Setter for reply_parameters field.
Source§

impl<P> SendMessageDraftSetters for P
where P: HasPayload<Payload = SendMessageDraft>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<ChatId>,

Setter for chat_id field.
Source§

fn draft_id(self, value: u32) -> Self

Setter for draft_id field.
Source§

fn text<T>(self, value: T) -> Self
where T: Into<String>,

Setter for text field.
Source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
Source§

fn parse_mode(self, value: ParseMode) -> Self

Setter for parse_mode field.
Source§

fn entities<T>(self, value: T) -> Self

Setter for entities field.
Source§

impl<P> SendMessageSetters for P
where P: HasPayload<Payload = SendMessage>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn text<T>(self, value: T) -> Self
where T: Into<String>,

Setter for text field.
Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
Source§

fn parse_mode(self, value: ParseMode) -> Self

Setter for parse_mode field.
Source§

fn entities<T>(self, value: T) -> Self

Setter for entities field.
Setter for link_preview_options field.
Source§

fn disable_notification(self, value: bool) -> Self

Setter for disable_notification field.
Source§

fn protect_content(self, value: bool) -> Self

Setter for protect_content field.
Source§

fn allow_paid_broadcast(self, value: bool) -> Self

Setter for allow_paid_broadcast field.
Source§

fn message_effect_id(self, value: EffectId) -> Self

Setter for message_effect_id field.
Source§

fn reply_parameters(self, value: ReplyParameters) -> Self

Setter for reply_parameters field.
Source§

fn reply_markup<T>(self, value: T) -> Self
where T: Into<ReplyMarkup>,

Setter for reply_markup field.
Source§

impl<P> SendPaidMediaSetters for P
where P: HasPayload<Payload = SendPaidMedia>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn star_count(self, value: u32) -> Self

Setter for star_count field.
Source§

fn media<T>(self, value: T) -> Self

Setter for media field.
Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn payload<T>(self, value: T) -> Self
where T: Into<String>,

Setter for payload field.
Source§

fn caption<T>(self, value: T) -> Self
where T: Into<String>,

Setter for caption field.
Source§

fn parse_mode(self, value: ParseMode) -> Self

Setter for parse_mode field.
Source§

fn caption_entities<T>(self, value: T) -> Self

Setter for caption_entities field.
Source§

fn show_caption_above_media(self, value: bool) -> Self

Setter for show_caption_above_media field.
Source§

fn disable_notification(self, value: bool) -> Self

Setter for disable_notification field.
Source§

fn protect_content(self, value: bool) -> Self

Setter for protect_content field.
Source§

fn allow_paid_broadcast(self, value: bool) -> Self

Setter for allow_paid_broadcast field.
Source§

fn reply_parameters(self, value: ReplyParameters) -> Self

Setter for reply_parameters field.
Source§

fn reply_markup<T>(self, value: T) -> Self
where T: Into<ReplyMarkup>,

Setter for reply_markup field.
Source§

impl<P> SendPhotoSetters for P
where P: HasPayload<Payload = SendPhoto>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn photo(self, value: InputFile) -> Self

Setter for photo field.
Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
Source§

fn caption<T>(self, value: T) -> Self
where T: Into<String>,

Setter for caption field.
Source§

fn parse_mode(self, value: ParseMode) -> Self

Setter for parse_mode field.
Source§

fn caption_entities<T>(self, value: T) -> Self

Setter for caption_entities field.
Source§

fn show_caption_above_media(self, value: bool) -> Self

Setter for show_caption_above_media field.
Source§

fn has_spoiler(self, value: bool) -> Self

Setter for has_spoiler field.
Source§

fn disable_notification(self, value: bool) -> Self

Setter for disable_notification field.
Source§

fn protect_content(self, value: bool) -> Self

Setter for protect_content field.
Source§

fn allow_paid_broadcast(self, value: bool) -> Self

Setter for allow_paid_broadcast field.
Source§

fn message_effect_id(self, value: EffectId) -> Self

Setter for message_effect_id field.
Source§

fn reply_parameters(self, value: ReplyParameters) -> Self

Setter for reply_parameters field.
Source§

fn reply_markup<T>(self, value: T) -> Self
where T: Into<ReplyMarkup>,

Setter for reply_markup field.
Source§

impl<P> SendPollSetters for P
where P: HasPayload<Payload = SendPoll>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn question<T>(self, value: T) -> Self
where T: Into<String>,

Setter for question field.
Source§

fn options<T>(self, value: T) -> Self

Setter for options field.
Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
Source§

fn question_parse_mode(self, value: ParseMode) -> Self

Setter for question_parse_mode field.
Source§

fn question_entities<T>(self, value: T) -> Self

Setter for question_entities field.
Source§

fn is_anonymous(self, value: bool) -> Self

Setter for is_anonymous field.
Source§

fn type_(self, value: PollType) -> Self

Setter for type_ field.
Source§

fn allows_multiple_answers(self, value: bool) -> Self

Setter for allows_multiple_answers field.
Source§

fn correct_option_id(self, value: u8) -> Self

Setter for correct_option_id field.
Source§

fn explanation<T>(self, value: T) -> Self
where T: Into<String>,

Setter for explanation field.
Source§

fn explanation_parse_mode(self, value: ParseMode) -> Self

Setter for explanation_parse_mode field.
Source§

fn explanation_entities<T>(self, value: T) -> Self

Setter for explanation_entities field.
Source§

fn open_period(self, value: u16) -> Self

Setter for open_period field.
Source§

fn close_date<T>(self, value: T) -> Self
where T: Into<DateTime<Utc>>,

Setter for close_date field.
Source§

fn is_closed(self, value: bool) -> Self

Setter for is_closed field.
Source§

fn disable_notification(self, value: bool) -> Self

Setter for disable_notification field.
Source§

fn protect_content(self, value: bool) -> Self

Setter for protect_content field.
Source§

fn allow_paid_broadcast(self, value: bool) -> Self

Setter for allow_paid_broadcast field.
Source§

fn message_effect_id(self, value: EffectId) -> Self

Setter for message_effect_id field.
Source§

fn reply_parameters(self, value: ReplyParameters) -> Self

Setter for reply_parameters field.
Source§

fn reply_markup<T>(self, value: T) -> Self
where T: Into<ReplyMarkup>,

Setter for reply_markup field.
Source§

impl<P> SendStickerSetters for P
where P: HasPayload<Payload = SendSticker>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn sticker(self, value: InputFile) -> Self

Setter for sticker field.
Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
Source§

fn emoji<T>(self, value: T) -> Self
where T: Into<String>,

Setter for emoji field.
Source§

fn disable_notification(self, value: bool) -> Self

Setter for disable_notification field.
Source§

fn protect_content(self, value: bool) -> Self

Setter for protect_content field.
Source§

fn allow_paid_broadcast(self, value: bool) -> Self

Setter for allow_paid_broadcast field.
Source§

fn message_effect_id(self, value: EffectId) -> Self

Setter for message_effect_id field.
Source§

fn reply_parameters(self, value: ReplyParameters) -> Self

Setter for reply_parameters field.
Source§

fn reply_markup<T>(self, value: T) -> Self
where T: Into<ReplyMarkup>,

Setter for reply_markup field.
Source§

impl<P> SendVenueSetters for P
where P: HasPayload<Payload = SendVenue>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn latitude(self, value: f64) -> Self

Setter for latitude field.
Source§

fn longitude(self, value: f64) -> Self

Setter for longitude field.
Source§

fn title<T>(self, value: T) -> Self
where T: Into<String>,

Setter for title field.
Source§

fn address<T>(self, value: T) -> Self
where T: Into<String>,

Setter for address field.
Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
Source§

fn foursquare_id<T>(self, value: T) -> Self
where T: Into<String>,

Setter for foursquare_id field.
Source§

fn foursquare_type<T>(self, value: T) -> Self
where T: Into<String>,

Setter for foursquare_type field.
Source§

fn google_place_id<T>(self, value: T) -> Self
where T: Into<String>,

Setter for google_place_id field.
Source§

fn google_place_type<T>(self, value: T) -> Self
where T: Into<String>,

Setter for google_place_type field.
Source§

fn disable_notification(self, value: bool) -> Self

Setter for disable_notification field.
Source§

fn protect_content(self, value: bool) -> Self

Setter for protect_content field.
Source§

fn allow_paid_broadcast(self, value: bool) -> Self

Setter for allow_paid_broadcast field.
Source§

fn message_effect_id(self, value: EffectId) -> Self

Setter for message_effect_id field.
Source§

fn reply_parameters(self, value: ReplyParameters) -> Self

Setter for reply_parameters field.
Source§

fn reply_markup<T>(self, value: T) -> Self
where T: Into<ReplyMarkup>,

Setter for reply_markup field.
Source§

impl<P> SendVideoNoteSetters for P
where P: HasPayload<Payload = SendVideoNote>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn video_note(self, value: InputFile) -> Self

Setter for video_note field.
Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
Source§

fn duration(self, value: u32) -> Self

Setter for duration field.
Source§

fn length(self, value: u32) -> Self

Setter for length field.
Source§

fn thumbnail(self, value: InputFile) -> Self

Setter for thumbnail field.
Source§

fn disable_notification(self, value: bool) -> Self

Setter for disable_notification field.
Source§

fn protect_content(self, value: bool) -> Self

Setter for protect_content field.
Source§

fn allow_paid_broadcast(self, value: bool) -> Self

Setter for allow_paid_broadcast field.
Source§

fn message_effect_id(self, value: EffectId) -> Self

Setter for message_effect_id field.
Source§

fn reply_parameters(self, value: ReplyParameters) -> Self

Setter for reply_parameters field.
Source§

fn reply_markup<T>(self, value: T) -> Self
where T: Into<ReplyMarkup>,

Setter for reply_markup field.
Source§

impl<P> SendVideoSetters for P
where P: HasPayload<Payload = SendVideo>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn video(self, value: InputFile) -> Self

Setter for video field.
Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
Source§

fn duration(self, value: u32) -> Self

Setter for duration field.
Source§

fn width(self, value: u32) -> Self

Setter for width field.
Source§

fn height(self, value: u32) -> Self

Setter for height field.
Source§

fn thumbnail(self, value: InputFile) -> Self

Setter for thumbnail field.
Source§

fn cover(self, value: InputFile) -> Self

Setter for cover field.
Source§

fn start_timestamp(self, value: Seconds) -> Self

Setter for start_timestamp field.
Source§

fn caption<T>(self, value: T) -> Self
where T: Into<String>,

Setter for caption field.
Source§

fn parse_mode(self, value: ParseMode) -> Self

Setter for parse_mode field.
Source§

fn caption_entities<T>(self, value: T) -> Self

Setter for caption_entities field.
Source§

fn show_caption_above_media(self, value: bool) -> Self

Setter for show_caption_above_media field.
Source§

fn has_spoiler(self, value: bool) -> Self

Setter for has_spoiler field.
Source§

fn supports_streaming(self, value: bool) -> Self

Setter for supports_streaming field.
Source§

fn disable_notification(self, value: bool) -> Self

Setter for disable_notification field.
Source§

fn protect_content(self, value: bool) -> Self

Setter for protect_content field.
Source§

fn allow_paid_broadcast(self, value: bool) -> Self

Setter for allow_paid_broadcast field.
Source§

fn message_effect_id(self, value: EffectId) -> Self

Setter for message_effect_id field.
Source§

fn reply_parameters(self, value: ReplyParameters) -> Self

Setter for reply_parameters field.
Source§

fn reply_markup<T>(self, value: T) -> Self
where T: Into<ReplyMarkup>,

Setter for reply_markup field.
Source§

impl<P> SendVoiceSetters for P
where P: HasPayload<Payload = SendVoice>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn voice(self, value: InputFile) -> Self

Setter for voice field.
Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
Source§

fn caption<T>(self, value: T) -> Self
where T: Into<String>,

Setter for caption field.
Source§

fn parse_mode(self, value: ParseMode) -> Self

Setter for parse_mode field.
Source§

fn caption_entities<T>(self, value: T) -> Self

Setter for caption_entities field.
Source§

fn duration(self, value: u32) -> Self

Setter for duration field.
Source§

fn disable_notification(self, value: bool) -> Self

Setter for disable_notification field.
Source§

fn protect_content(self, value: bool) -> Self

Setter for protect_content field.
Source§

fn allow_paid_broadcast(self, value: bool) -> Self

Setter for allow_paid_broadcast field.
Source§

fn message_effect_id(self, value: EffectId) -> Self

Setter for message_effect_id field.
Source§

fn reply_parameters(self, value: ReplyParameters) -> Self

Setter for reply_parameters field.
Source§

fn reply_markup<T>(self, value: T) -> Self
where T: Into<ReplyMarkup>,

Setter for reply_markup field.
Source§

impl<P> SetBusinessAccountBioSetters for P
where P: HasPayload<Payload = SetBusinessAccountBio>,

Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn bio<T>(self, value: T) -> Self
where T: Into<String>,

Setter for bio field.
Source§

impl<P> SetBusinessAccountGiftSettingsSetters for P

Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn show_gift_button(self, value: bool) -> Self

Setter for show_gift_button field.
Source§

fn accepted_gift_types(self, value: AcceptedGiftTypes) -> Self

Setter for accepted_gift_types field.
Source§

impl<P> SetBusinessAccountNameSetters for P
where P: HasPayload<Payload = SetBusinessAccountName>,

Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn first_name<T>(self, value: T) -> Self
where T: Into<String>,

Setter for first_name field.
Source§

fn last_name<T>(self, value: T) -> Self
where T: Into<String>,

Setter for last_name field.
Source§

impl<P> SetBusinessAccountProfilePhotoSetters for P

Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn photo(self, value: InputProfilePhoto) -> Self

Setter for photo field.
Source§

fn is_public(self, value: bool) -> Self

Setter for is_public field.
Source§

impl<P> SetBusinessAccountUsernameSetters for P

Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn username<T>(self, value: T) -> Self
where T: Into<String>,

Setter for username field.
Source§

impl<P> SetChatAdministratorCustomTitleSetters for P

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
Source§

fn custom_title<T>(self, value: T) -> Self
where T: Into<String>,

Setter for custom_title field.
Source§

impl<P> SetChatDescriptionSetters for P
where P: HasPayload<Payload = SetChatDescription>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn description<T>(self, value: T) -> Self
where T: Into<String>,

Setter for description field.
Source§

impl<P> SetChatMenuButtonSetters for P
where P: HasPayload<Payload = SetChatMenuButton>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<ChatId>,

Setter for chat_id field.
Source§

fn menu_button(self, value: MenuButton) -> Self

Setter for menu_button field.
Source§

impl<P> SetChatPermissionsSetters for P
where P: HasPayload<Payload = SetChatPermissions>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn permissions(self, value: ChatPermissions) -> Self

Setter for permissions field.
Source§

fn use_independent_chat_permissions(self, value: bool) -> Self

Source§

impl<P> SetChatPhotoSetters for P
where P: HasPayload<Payload = SetChatPhoto>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn photo(self, value: InputFile) -> Self

Setter for photo field.
Source§

impl<P> SetChatStickerSetSetters for P
where P: HasPayload<Payload = SetChatStickerSet>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn sticker_set_name<T>(self, value: T) -> Self
where T: Into<String>,

Setter for sticker_set_name field.
Source§

impl<P> SetChatTitleSetters for P
where P: HasPayload<Payload = SetChatTitle>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn title<T>(self, value: T) -> Self
where T: Into<String>,

Setter for title field.
Source§

impl<P> SetCustomEmojiStickerSetThumbnailSetters for P

Source§

fn name<T>(self, value: T) -> Self
where T: Into<String>,

Setter for name field.
Source§

fn custom_emoji_id(self, value: CustomEmojiId) -> Self

Setter for custom_emoji_id field.
Source§

impl<P> SetGameScoreInlineSetters for P
where P: HasPayload<Payload = SetGameScoreInline>,

Source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
Source§

fn score(self, value: u64) -> Self

Setter for score field.
Source§

fn inline_message_id<T>(self, value: T) -> Self
where T: Into<String>,

Setter for inline_message_id field.
Source§

fn force(self, value: bool) -> Self

Setter for force field.
Source§

fn disable_edit_message(self, value: bool) -> Self

Setter for disable_edit_message field.
Source§

impl<P> SetGameScoreSetters for P
where P: HasPayload<Payload = SetGameScore>,

Source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
Source§

fn score(self, value: u64) -> Self

Setter for score field.
Source§

fn chat_id(self, value: u32) -> Self

Setter for chat_id field.
Source§

fn message_id(self, value: MessageId) -> Self

Setter for message_id field.
Source§

fn force(self, value: bool) -> Self

Setter for force field.
Source§

fn disable_edit_message(self, value: bool) -> Self

Setter for disable_edit_message field.
Source§

impl<P> SetMessageReactionSetters for P
where P: HasPayload<Payload = SetMessageReaction>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn message_id(self, value: MessageId) -> Self

Setter for message_id field.
Source§

fn reaction<T>(self, value: T) -> Self
where T: IntoIterator<Item = <Vec<ReactionType> as IntoIterator>::Item>,

Setter for reaction field.
Source§

fn is_big(self, value: bool) -> Self

Setter for is_big field.
Source§

impl<P> SetMyCommandsSetters for P
where P: HasPayload<Payload = SetMyCommands>,

Source§

fn commands<T>(self, value: T) -> Self
where T: IntoIterator<Item = <Vec<BotCommand> as IntoIterator>::Item>,

Setter for commands field.
Source§

fn scope(self, value: BotCommandScope) -> Self

Setter for scope field.
Source§

fn language_code<T>(self, value: T) -> Self
where T: Into<String>,

Setter for language_code field.
Source§

impl<P> SetMyDefaultAdministratorRightsSetters for P

Source§

fn rights(self, value: ChatAdministratorRights) -> Self

Setter for rights field.
Source§

fn for_channels(self, value: bool) -> Self

Setter for for_channels field.
Source§

impl<P> SetMyDescriptionSetters for P
where P: HasPayload<Payload = SetMyDescription>,

Source§

fn description<T>(self, value: T) -> Self
where T: Into<String>,

Setter for description field.
Source§

fn language_code<T>(self, value: T) -> Self
where T: Into<String>,

Setter for language_code field.
Source§

impl<P> SetMyNameSetters for P
where P: HasPayload<Payload = SetMyName>,

Source§

fn name<T>(self, value: T) -> Self
where T: Into<String>,

Setter for name field.
Source§

fn language_code<T>(self, value: T) -> Self
where T: Into<String>,

Setter for language_code field.
Source§

impl<P> SetMyShortDescriptionSetters for P
where P: HasPayload<Payload = SetMyShortDescription>,

Source§

fn short_description<T>(self, value: T) -> Self
where T: Into<String>,

Setter for short_description field.
Source§

fn language_code<T>(self, value: T) -> Self
where T: Into<String>,

Setter for language_code field.
Source§

impl<P> SetPassportDataErrorsSetters for P
where P: HasPayload<Payload = SetPassportDataErrors>,

Source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
Source§

fn errors<T>(self, value: T) -> Self

Setter for errors field.
Source§

impl<P> SetStickerEmojiListSetters for P
where P: HasPayload<Payload = SetStickerEmojiList>,

Source§

fn sticker<T>(self, value: T) -> Self
where T: Into<String>,

Setter for sticker field.
Source§

fn emoji_list<T>(self, value: T) -> Self
where T: IntoIterator<Item = <Vec<String> as IntoIterator>::Item>,

Setter for emoji_list field.
Source§

impl<P> SetStickerKeywordsSetters for P
where P: HasPayload<Payload = SetStickerKeywords>,

Source§

fn sticker<T>(self, value: T) -> Self
where T: Into<String>,

Setter for sticker field.
Source§

fn keywords<T>(self, value: T) -> Self
where T: IntoIterator<Item = <Vec<String> as IntoIterator>::Item>,

Setter for keywords field.
Source§

impl<P> SetStickerMaskPositionSetters for P
where P: HasPayload<Payload = SetStickerMaskPosition>,

Source§

fn sticker<T>(self, value: T) -> Self
where T: Into<String>,

Setter for sticker field.
Source§

fn mask_position(self, value: MaskPosition) -> Self

Setter for mask_position field.
Source§

impl<P> SetStickerPositionInSetSetters for P
where P: HasPayload<Payload = SetStickerPositionInSet>,

Source§

fn sticker<T>(self, value: T) -> Self
where T: Into<String>,

Setter for sticker field.
Source§

fn position(self, value: u32) -> Self

Setter for position field.
Source§

impl<P> SetStickerSetThumbnailSetters for P
where P: HasPayload<Payload = SetStickerSetThumbnail>,

Source§

fn name<T>(self, value: T) -> Self
where T: Into<String>,

Setter for name field.
Source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
Source§

fn format(self, value: StickerFormat) -> Self

Setter for format field.
Source§

fn thumbnail(self, value: InputFile) -> Self

Setter for thumbnail field.
Source§

impl<P> SetStickerSetTitleSetters for P
where P: HasPayload<Payload = SetStickerSetTitle>,

Source§

fn name<T>(self, value: T) -> Self
where T: Into<String>,

Setter for name field.
Source§

fn title<T>(self, value: T) -> Self
where T: Into<String>,

Setter for title field.
Source§

impl<P> SetUserEmojiStatusSetters for P
where P: HasPayload<Payload = SetUserEmojiStatus>,

Source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
Source§

fn emoji_status_custom_emoji_id(self, value: CustomEmojiId) -> Self

Source§

fn emoji_status_expiration_date<T>(self, value: T) -> Self
where T: Into<DateTime<Utc>>,

Source§

impl<P> SetWebhookSetters for P
where P: HasPayload<Payload = SetWebhook>,

Source§

fn url(self, value: Url) -> Self

Setter for url field.
Source§

fn certificate(self, value: InputFile) -> Self

Setter for certificate field.
Source§

fn ip_address<T>(self, value: T) -> Self
where T: Into<String>,

Setter for ip_address field.
Source§

fn max_connections(self, value: u8) -> Self

Setter for max_connections field.
Source§

fn allowed_updates<T>(self, value: T) -> Self

Setter for allowed_updates field.
Source§

fn drop_pending_updates(self, value: bool) -> Self

Setter for drop_pending_updates field.
Source§

fn secret_token<T>(self, value: T) -> Self
where T: Into<String>,

Setter for secret_token field.
Source§

impl<P> StopMessageLiveLocationInlineSetters for P

Source§

fn inline_message_id<T>(self, value: T) -> Self
where T: Into<String>,

Setter for inline_message_id field.
Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn reply_markup<T>(self, value: T) -> Self
where T: Into<ReplyMarkup>,

Setter for reply_markup field.
Source§

impl<P> StopMessageLiveLocationSetters for P
where P: HasPayload<Payload = StopMessageLiveLocation>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn message_id(self, value: MessageId) -> Self

Setter for message_id field.
Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn reply_markup<T>(self, value: T) -> Self
where T: Into<ReplyMarkup>,

Setter for reply_markup field.
Source§

impl<P> StopPollSetters for P
where P: HasPayload<Payload = StopPoll>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn message_id(self, value: MessageId) -> Self

Setter for message_id field.
Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn reply_markup(self, value: InlineKeyboardMarkup) -> Self

Setter for reply_markup field.
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<P> TransferBusinessAccountStarsSetters for P

Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn star_count(self, value: u32) -> Self

Setter for star_count field.
Source§

impl<P> TransferGiftSetters for P
where P: HasPayload<Payload = TransferGift>,

Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn owned_gift_id(self, value: OwnedGiftId) -> Self

Setter for owned_gift_id field.
Source§

fn new_owner_chat_id<T>(self, value: T) -> Self
where T: Into<ChatId>,

Setter for new_owner_chat_id field.
Source§

fn star_count(self, value: u32) -> Self

Setter for star_count field.
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<R> TryRng for R
where R: DerefMut, <R as Deref>::Target: TryRng,

Source§

type Error = <<R as Deref>::Target as TryRng>::Error

The type returned in the event of a RNG error. Read more
Source§

fn try_next_u32(&mut self) -> Result<u32, <R as TryRng>::Error>

Return the next random u32.
Source§

fn try_next_u64(&mut self) -> Result<u64, <R as TryRng>::Error>

Return the next random u64.
Source§

fn try_fill_bytes(&mut self, dst: &mut [u8]) -> Result<(), <R as TryRng>::Error>

Fill dst entirely with random data.
Source§

impl<T> TypedCommands for T
where T: ConnectionLike,

Source§

fn get<'a, K>(&'a mut self, key: K) -> Result<Option<String>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Get the value of a key. If key is a vec this becomes an MGET (if using TypedCommands, you should specifically use mget to get the correct return type. Redis Docs
Source§

fn mget<'a, K>(&'a mut self, key: K) -> Result<Vec<Option<String>>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Get values of keys Redis Docs
Source§

fn keys<'a, K>(&'a mut self, key: K) -> Result<Vec<String>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Gets all keys matching pattern Redis Docs
Source§

fn set<'a, K, V>(&'a mut self, key: K, value: V) -> Result<(), RedisError>
where K: ToRedisArgs + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a,

Set the string value of a key. Redis Docs
Source§

fn set_options<'a, K, V>( &'a mut self, key: K, value: V, options: SetOptions, ) -> Result<Option<String>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a,

Set the string value of a key with options. Redis Docs
Source§

fn set_multiple<'a, K, V>( &'a mut self, items: &'a [(K, V)], ) -> Result<(), RedisError>
where K: ToRedisArgs + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a,

👎Deprecated since 0.22.4: Renamed to mset() to reflect Redis name
Sets multiple keys to their values. Redis Docs
Source§

fn mset<'a, K, V>(&'a mut self, items: &'a [(K, V)]) -> Result<(), RedisError>
where K: ToRedisArgs + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a,

Sets multiple keys to their values. Redis Docs
Source§

fn set_ex<'a, K, V>( &'a mut self, key: K, value: V, seconds: u64, ) -> Result<(), RedisError>
where K: ToRedisArgs + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a,

Set the value and expiration of a key. Redis Docs
Source§

fn pset_ex<'a, K, V>( &'a mut self, key: K, value: V, milliseconds: u64, ) -> Result<(), RedisError>
where K: ToRedisArgs + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a,

Set the value and expiration in milliseconds of a key. Redis Docs
Source§

fn set_nx<'a, K, V>(&'a mut self, key: K, value: V) -> Result<bool, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a,

Set the value of a key, only if the key does not exist Redis Docs
Source§

fn mset_nx<'a, K, V>( &'a mut self, items: &'a [(K, V)], ) -> Result<bool, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a,

Sets multiple keys to their values failing if at least one already exists. Redis Docs
Source§

fn getset<'a, K, V>( &'a mut self, key: K, value: V, ) -> Result<Option<String>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a,

Set the string value of a key and return its old value. Redis Docs
Source§

fn getrange<'a, K>( &'a mut self, key: K, from: isize, to: isize, ) -> Result<String, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Get a range of bytes/substring from the value of a key. Negative values provide an offset from the end of the value. Redis returns an empty string if the key doesn’t exist, not Nil Redis Docs
Source§

fn setrange<'a, K, V>( &'a mut self, key: K, offset: isize, value: V, ) -> Result<usize, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a,

Overwrite the part of the value stored in key at the specified offset. Redis Docs
Source§

fn del<'a, K>(&'a mut self, key: K) -> Result<usize, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Delete one or more keys. Returns the number of keys deleted. Redis Docs
Source§

fn exists<'a, K>(&'a mut self, key: K) -> Result<bool, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Determine if a key exists. Redis Docs
Source§

fn key_type<'a, K>(&'a mut self, key: K) -> Result<ValueType, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Determine the type of key. Redis Docs
Source§

fn expire<'a, K>(&'a mut self, key: K, seconds: i64) -> Result<bool, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Set a key’s time to live in seconds. Returns whether expiration was set. Redis Docs
Source§

fn expire_at<'a, K>(&'a mut self, key: K, ts: i64) -> Result<bool, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Set the expiration for a key as a UNIX timestamp. Returns whether expiration was set. Redis Docs
Source§

fn pexpire<'a, K>(&'a mut self, key: K, ms: i64) -> Result<bool, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Set a key’s time to live in milliseconds. Returns whether expiration was set. Redis Docs
Source§

fn pexpire_at<'a, K>(&'a mut self, key: K, ts: i64) -> Result<bool, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Set the expiration for a key as a UNIX timestamp in milliseconds. Returns whether expiration was set. Redis Docs
Source§

fn expire_time<'a, K>( &'a mut self, key: K, ) -> Result<IntegerReplyOrNoOp, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Get the absolute Unix expiration timestamp in seconds. Returns ExistsButNotRelevant if key exists but has no expiration time. Redis Docs
Source§

fn pexpire_time<'a, K>( &'a mut self, key: K, ) -> Result<IntegerReplyOrNoOp, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Get the absolute Unix expiration timestamp in milliseconds. Returns ExistsButNotRelevant if key exists but has no expiration time. Redis Docs
Source§

fn persist<'a, K>(&'a mut self, key: K) -> Result<bool, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Remove the expiration from a key. Returns whether a timeout was removed. Redis Docs
Source§

fn ttl<'a, K>(&'a mut self, key: K) -> Result<IntegerReplyOrNoOp, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Get the time to live for a key in seconds. Returns ExistsButNotRelevant if key exists but has no expiration time. Redis Docs
Source§

fn pttl<'a, K>(&'a mut self, key: K) -> Result<IntegerReplyOrNoOp, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Get the time to live for a key in milliseconds. Returns ExistsButNotRelevant if key exists but has no expiration time. Redis Docs
Source§

fn get_ex<'a, K>( &'a mut self, key: K, expire_at: Expiry, ) -> Result<Option<String>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Get the value of a key and set expiration Redis Docs
Source§

fn get_del<'a, K>(&'a mut self, key: K) -> Result<Option<String>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Get the value of a key and delete it Redis Docs
Source§

fn copy<'a, KSrc, KDst, Db>( &'a mut self, source: KSrc, destination: KDst, options: CopyOptions<Db>, ) -> Result<bool, RedisError>
where KSrc: ToRedisArgs + Send + Sync + 'a, KDst: ToRedisArgs + Send + Sync + 'a, Db: ToString + Send + Sync + 'a,

Copy the value from one key to another, returning whether the copy was successful. Redis Docs
Source§

fn rename<'a, K, N>(&'a mut self, key: K, new_key: N) -> Result<(), RedisError>
where K: ToRedisArgs + Send + Sync + 'a, N: ToRedisArgs + Send + Sync + 'a,

Rename a key. Errors if key does not exist. Redis Docs
Source§

fn rename_nx<'a, K, N>( &'a mut self, key: K, new_key: N, ) -> Result<bool, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, N: ToRedisArgs + Send + Sync + 'a,

Rename a key, only if the new key does not exist. Errors if key does not exist. Returns whether the key was renamed, or false if the new key already exists. Redis Docs
Unlink one or more keys. This is a non-blocking version of DEL. Returns number of keys unlinked. Redis Docs
Source§

fn append<'a, K, V>(&'a mut self, key: K, value: V) -> Result<usize, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a,

Append a value to a key. Returns length of string after operation. Redis Docs
Source§

fn incr<'a, K, V>(&'a mut self, key: K, delta: V) -> Result<isize, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a,

Increment the numeric value of a key by the given amount. This issues a INCRBY or INCRBYFLOAT depending on the type. If the key does not exist, it is set to 0 before performing the operation.
Source§

fn decr<'a, K, V>(&'a mut self, key: K, delta: V) -> Result<isize, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a,

Decrement the numeric value of a key by the given amount. If the key does not exist, it is set to 0 before performing the operation. Redis Docs
Source§

fn setbit<'a, K>( &'a mut self, key: K, offset: usize, value: bool, ) -> Result<bool, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Sets or clears the bit at offset in the string value stored at key. Returns the original bit value stored at offset. Redis Docs
Source§

fn getbit<'a, K>( &'a mut self, key: K, offset: usize, ) -> Result<bool, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Returns the bit value at offset in the string value stored at key. Redis Docs
Source§

fn bitcount<'a, K>(&'a mut self, key: K) -> Result<usize, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Count set bits in a string. Returns 0 if key does not exist. Redis Docs
Source§

fn bitcount_range<'a, K>( &'a mut self, key: K, start: usize, end: usize, ) -> Result<usize, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Count set bits in a string in a range. Returns 0 if key does not exist. Redis Docs
Source§

fn bit_and<'a, D, S>( &'a mut self, dstkey: D, srckeys: S, ) -> Result<usize, RedisError>
where D: ToRedisArgs + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a,

Perform a bitwise AND between multiple keys (containing string values) and store the result in the destination key. Returns size of destination string after operation. Redis Docs
Source§

fn bit_or<'a, D, S>( &'a mut self, dstkey: D, srckeys: S, ) -> Result<usize, RedisError>
where D: ToRedisArgs + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a,

Perform a bitwise OR between multiple keys (containing string values) and store the result in the destination key. Returns size of destination string after operation. Redis Docs
Source§

fn bit_xor<'a, D, S>( &'a mut self, dstkey: D, srckeys: S, ) -> Result<usize, RedisError>
where D: ToRedisArgs + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a,

Perform a bitwise XOR between multiple keys (containing string values) and store the result in the destination key. Returns size of destination string after operation. Redis Docs
Source§

fn bit_not<'a, D, S>( &'a mut self, dstkey: D, srckey: S, ) -> Result<usize, RedisError>
where D: ToRedisArgs + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a,

Perform a bitwise NOT of the key (containing string values) and store the result in the destination key. Returns size of destination string after operation. Redis Docs
Source§

fn bit_diff<'a, D, S>( &'a mut self, dstkey: D, srckeys: S, ) -> Result<usize, RedisError>
where D: ToRedisArgs + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a,

DIFF(X, Y1, Y2, …)
Perform a set difference to extract the members of X that are not members of any of Y1, Y2,….
Logical representation: X ∧ ¬(Y1 ∨ Y2 ∨ …)
Redis Docs
Source§

fn bit_diff1<'a, D, S>( &'a mut self, dstkey: D, srckeys: S, ) -> Result<usize, RedisError>
where D: ToRedisArgs + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a,

DIFF1(X, Y1, Y2, …) (Relative complement difference)
Perform a relative complement set difference to extract the members of one or more of Y1, Y2,… that are not members of X.
Logical representation: ¬X ∧ (Y1 ∨ Y2 ∨ …)
Redis Docs
Source§

fn bit_and_or<'a, D, S>( &'a mut self, dstkey: D, srckeys: S, ) -> Result<usize, RedisError>
where D: ToRedisArgs + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a,

ANDOR(X, Y1, Y2, …)
Perform an “intersection of union(s)” operation to extract the members of X that are also members of one or more of Y1, Y2,….
Logical representation: X ∧ (Y1 ∨ Y2 ∨ …)
Redis Docs
Source§

fn bit_one<'a, D, S>( &'a mut self, dstkey: D, srckeys: S, ) -> Result<usize, RedisError>
where D: ToRedisArgs + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a,

ONE(X, Y1, Y2, …)
Perform an “exclusive membership” operation to extract the members of exactly one of X, Y1, Y2, ….
Logical representation: (X ∨ Y1 ∨ Y2 ∨ …) ∧ ¬((X ∧ Y1) ∨ (X ∧ Y2) ∨ (Y1 ∧ Y2) ∨ (Y1 ∧ Y3) ∨ …)
Redis Docs
Source§

fn strlen<'a, K>(&'a mut self, key: K) -> Result<usize, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Get the length of the value stored in a key. 0 if key does not exist. Redis Docs
Source§

fn hget<'a, K, F>( &'a mut self, key: K, field: F, ) -> Result<Option<String>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a,

Gets a single (or multiple) fields from a hash.
Source§

fn hmget<'a, K, F>( &'a mut self, key: K, fields: F, ) -> Result<Vec<String>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a,

Gets multiple fields from a hash. Redis Docs
Source§

fn hget_ex<'a, K, F>( &'a mut self, key: K, fields: F, expire_at: Expiry, ) -> Result<Vec<String>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a,

Get the value of one or more fields of a given hash key, and optionally set their expiration Redis Docs
Source§

fn hdel<'a, K, F>(&'a mut self, key: K, field: F) -> Result<usize, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a,

Deletes a single (or multiple) fields from a hash. Returns number of fields deleted. Redis Docs
Source§

fn hget_del<'a, K, F>( &'a mut self, key: K, fields: F, ) -> Result<Vec<Option<String>>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a,

Get and delete the value of one or more fields of a given hash key Redis Docs
Source§

fn hset<'a, K, F, V>( &'a mut self, key: K, field: F, value: V, ) -> Result<usize, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a,

Sets a single field in a hash. Returns number of fields added. Redis Docs
Source§

fn hset_ex<'a, K, F, V>( &'a mut self, key: K, hash_field_expiration_options: &'a HashFieldExpirationOptions, fields_values: &'a [(F, V)], ) -> Result<bool, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a,

Set the value of one or more fields of a given hash key, and optionally set their expiration Redis Docs
Source§

fn hset_nx<'a, K, F, V>( &'a mut self, key: K, field: F, value: V, ) -> Result<bool, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a,

Sets a single field in a hash if it does not exist. Returns whether the field was added. Redis Docs
Source§

fn hset_multiple<'a, K, F, V>( &'a mut self, key: K, items: &'a [(F, V)], ) -> Result<(), RedisError>
where K: ToRedisArgs + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a,

Sets multiple fields in a hash. Redis Docs
Source§

fn hincr<'a, K, F, D>( &'a mut self, key: K, field: F, delta: D, ) -> Result<f64, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a, D: ToRedisArgs + Send + Sync + 'a,

Increments a value. Returns the new value of the field after incrementation.
Source§

fn hexists<'a, K, F>(&'a mut self, key: K, field: F) -> Result<bool, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a,

Checks if a field in a hash exists. Redis Docs
Source§

fn httl<'a, K, F>( &'a mut self, key: K, fields: F, ) -> Result<Vec<IntegerReplyOrNoOp>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a,

Get one or more fields’ TTL in seconds. Redis Docs
Source§

fn hpttl<'a, K, F>( &'a mut self, key: K, fields: F, ) -> Result<Vec<IntegerReplyOrNoOp>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a,

Get one or more fields’ TTL in milliseconds. Redis Docs
Source§

fn hexpire<'a, K, F>( &'a mut self, key: K, seconds: i64, opt: ExpireOption, fields: F, ) -> Result<Vec<IntegerReplyOrNoOp>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a,

Set one or more fields’ time to live in seconds. Returns an array where each element corresponds to the field at the same index in the fields argument. Each element of the array is either: 0 if the specified condition has not been met. 1 if the expiration time was updated. 2 if called with 0 seconds. Errors if provided key exists but is not a hash. Redis Docs
Source§

fn hexpire_at<'a, K, F>( &'a mut self, key: K, ts: i64, opt: ExpireOption, fields: F, ) -> Result<Vec<IntegerReplyOrNoOp>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a,

Set the expiration for one or more fields as a UNIX timestamp in seconds. Returns an array where each element corresponds to the field at the same index in the fields argument. Each element of the array is either: 0 if the specified condition has not been met. 1 if the expiration time was updated. 2 if called with a time in the past. Errors if provided key exists but is not a hash. Redis Docs
Source§

fn hexpire_time<'a, K, F>( &'a mut self, key: K, fields: F, ) -> Result<Vec<IntegerReplyOrNoOp>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a,

Returns the absolute Unix expiration timestamp in seconds. Redis Docs
Source§

fn hpersist<'a, K, F>( &'a mut self, key: K, fields: F, ) -> Result<Vec<IntegerReplyOrNoOp>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a,

Remove the expiration from a key. Returns 1 if the expiration was removed. Redis Docs
Source§

fn hpexpire<'a, K, F>( &'a mut self, key: K, milliseconds: i64, opt: ExpireOption, fields: F, ) -> Result<Vec<IntegerReplyOrNoOp>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a,

Set one or more fields’ time to live in milliseconds. Returns an array where each element corresponds to the field at the same index in the fields argument. Each element of the array is either: 0 if the specified condition has not been met. 1 if the expiration time was updated. 2 if called with 0 seconds. Errors if provided key exists but is not a hash. Redis Docs
Source§

fn hpexpire_at<'a, K, F>( &'a mut self, key: K, ts: i64, opt: ExpireOption, fields: F, ) -> Result<Vec<IntegerReplyOrNoOp>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a,

Set the expiration for one or more fields as a UNIX timestamp in milliseconds. Returns an array where each element corresponds to the field at the same index in the fields argument. Each element of the array is either: 0 if the specified condition has not been met. 1 if the expiration time was updated. 2 if called with a time in the past. Errors if provided key exists but is not a hash. Redis Docs
Source§

fn hpexpire_time<'a, K, F>( &'a mut self, key: K, fields: F, ) -> Result<Vec<IntegerReplyOrNoOp>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a,

Returns the absolute Unix expiration timestamp in seconds. Redis Docs
Source§

fn hkeys<'a, K>(&'a mut self, key: K) -> Result<Vec<String>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Gets all the keys in a hash. Redis Docs
Source§

fn hvals<'a, K>(&'a mut self, key: K) -> Result<Vec<String>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Gets all the values in a hash. Redis Docs
Source§

fn hgetall<'a, K>( &'a mut self, key: K, ) -> Result<HashMap<String, String>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Gets all the fields and values in a hash. Redis Docs
Source§

fn hlen<'a, K>(&'a mut self, key: K) -> Result<usize, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Gets the length of a hash. Returns 0 if key does not exist. Redis Docs
Source§

fn blmove<'a, S, D>( &'a mut self, srckey: S, dstkey: D, src_dir: Direction, dst_dir: Direction, timeout: f64, ) -> Result<Option<String>, RedisError>
where S: ToRedisArgs + Send + Sync + 'a, D: ToRedisArgs + Send + Sync + 'a,

Pop an element from a list, push it to another list and return it; or block until one is available Redis Docs
Source§

fn blmpop<'a, K>( &'a mut self, timeout: f64, numkeys: usize, key: K, dir: Direction, count: usize, ) -> Result<Option<[String; 2]>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Pops count elements from the first non-empty list key from the list of provided key names; or blocks until one is available. Redis Docs
Source§

fn blpop<'a, K>( &'a mut self, key: K, timeout: f64, ) -> Result<Option<[String; 2]>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Remove and get the first element in a list, or block until one is available. Redis Docs
Source§

fn brpop<'a, K>( &'a mut self, key: K, timeout: f64, ) -> Result<Option<[String; 2]>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Remove and get the last element in a list, or block until one is available. Redis Docs
Source§

fn brpoplpush<'a, S, D>( &'a mut self, srckey: S, dstkey: D, timeout: f64, ) -> Result<Option<String>, RedisError>
where S: ToRedisArgs + Send + Sync + 'a, D: ToRedisArgs + Send + Sync + 'a,

Pop a value from a list, push it to another list and return it; or block until one is available. Redis Docs
Source§

fn lindex<'a, K>( &'a mut self, key: K, index: isize, ) -> Result<Option<String>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Get an element from a list by its index. Redis Docs
Source§

fn linsert_before<'a, K, P, V>( &'a mut self, key: K, pivot: P, value: V, ) -> Result<isize, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, P: ToRedisArgs + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a,

Insert an element before another element in a list. Redis Docs
Source§

fn linsert_after<'a, K, P, V>( &'a mut self, key: K, pivot: P, value: V, ) -> Result<isize, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, P: ToRedisArgs + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a,

Insert an element after another element in a list. Redis Docs
Source§

fn llen<'a, K>(&'a mut self, key: K) -> Result<usize, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Returns the length of the list stored at key. Redis Docs
Source§

fn lmove<'a, S, D>( &'a mut self, srckey: S, dstkey: D, src_dir: Direction, dst_dir: Direction, ) -> Result<String, RedisError>
where S: ToRedisArgs + Send + Sync + 'a, D: ToRedisArgs + Send + Sync + 'a,

Pop an element a list, push it to another list and return it Redis Docs
Source§

fn lmpop<'a, K>( &'a mut self, numkeys: usize, key: K, dir: Direction, count: usize, ) -> Result<Option<(String, Vec<String>)>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Pops count elements from the first non-empty list key from the list of provided key names. Redis Docs
Source§

fn lpop<'a, RV, K>( &'a mut self, key: K, count: Option<NonZero<usize>>, ) -> Result<RV, RedisError>
where RV: FromRedisValue, K: ToRedisArgs + Send + Sync + 'a,

Removes and returns the up to count first elements of the list stored at key. Read more
Source§

fn lpos<'a, RV, K, V>( &'a mut self, key: K, value: V, options: LposOptions, ) -> Result<RV, RedisError>
where RV: FromRedisValue, K: ToRedisArgs + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a,

Returns the index of the first matching value of the list stored at key. Redis Docs
Source§

fn lpush<'a, K, V>(&'a mut self, key: K, value: V) -> Result<usize, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a,

Insert all the specified values at the head of the list stored at key. Redis Docs
Source§

fn lpush_exists<'a, K, V>( &'a mut self, key: K, value: V, ) -> Result<usize, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a,

Inserts a value at the head of the list stored at key, only if key already exists and holds a list. Redis Docs
Source§

fn lrange<'a, K>( &'a mut self, key: K, start: isize, stop: isize, ) -> Result<Vec<String>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Returns the specified elements of the list stored at key. Redis Docs
Source§

fn lrem<'a, K, V>( &'a mut self, key: K, count: isize, value: V, ) -> Result<usize, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a,

Removes the first count occurrences of elements equal to value from the list stored at key. Redis Docs
Source§

fn ltrim<'a, K>( &'a mut self, key: K, start: isize, stop: isize, ) -> Result<(), RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Trim an existing list so that it will contain only the specified range of elements specified. Redis Docs
Source§

fn lset<'a, K, V>( &'a mut self, key: K, index: isize, value: V, ) -> Result<(), RedisError>
where K: ToRedisArgs + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a,

Sets the list element at index to value Redis Docs
Source§

fn ping<'a>(&'a mut self) -> Result<String, RedisError>

Sends a ping to the server Redis Docs
Source§

fn ping_message<'a, K>(&'a mut self, message: K) -> Result<String, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Sends a ping with a message to the server Redis Docs
Source§

fn rpop<'a, RV, K>( &'a mut self, key: K, count: Option<NonZero<usize>>, ) -> Result<RV, RedisError>
where RV: FromRedisValue, K: ToRedisArgs + Send + Sync + 'a,

Removes and returns the up to count last elements of the list stored at key Read more
Source§

fn rpoplpush<'a, K, D>( &'a mut self, key: K, dstkey: D, ) -> Result<Option<String>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, D: ToRedisArgs + Send + Sync + 'a,

Pop a value from a list, push it to another list and return it. Redis Docs
Source§

fn rpush<'a, K, V>(&'a mut self, key: K, value: V) -> Result<usize, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a,

Insert all the specified values at the tail of the list stored at key. Redis Docs
Source§

fn rpush_exists<'a, K, V>( &'a mut self, key: K, value: V, ) -> Result<usize, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a,

Inserts value at the tail of the list stored at key, only if key already exists and holds a list. Redis Docs
Source§

fn sadd<'a, K, M>(&'a mut self, key: K, member: M) -> Result<usize, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a,

Add one or more members to a set. Redis Docs
Source§

fn scard<'a, K>(&'a mut self, key: K) -> Result<usize, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Get the number of members in a set. Redis Docs
Source§

fn sdiff<'a, K>(&'a mut self, keys: K) -> Result<HashSet<String>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Subtract multiple sets. Redis Docs
Source§

fn sdiffstore<'a, D, K>( &'a mut self, dstkey: D, keys: K, ) -> Result<usize, RedisError>
where D: ToRedisArgs + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a,

Subtract multiple sets and store the resulting set in a key. Redis Docs
Source§

fn sinter<'a, K>(&'a mut self, keys: K) -> Result<HashSet<String>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Intersect multiple sets. Redis Docs
Source§

fn sinterstore<'a, D, K>( &'a mut self, dstkey: D, keys: K, ) -> Result<usize, RedisError>
where D: ToRedisArgs + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a,

Intersect multiple sets and store the resulting set in a key. Redis Docs
Source§

fn sismember<'a, K, M>( &'a mut self, key: K, member: M, ) -> Result<bool, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a,

Determine if a given value is a member of a set. Redis Docs
Source§

fn smismember<'a, K, M>( &'a mut self, key: K, members: M, ) -> Result<Vec<bool>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a,

Determine if given values are members of a set. Redis Docs
Source§

fn smembers<'a, K>(&'a mut self, key: K) -> Result<HashSet<String>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Get all the members in a set. Redis Docs
Source§

fn smove<'a, S, D, M>( &'a mut self, srckey: S, dstkey: D, member: M, ) -> Result<bool, RedisError>
where S: ToRedisArgs + Send + Sync + 'a, D: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a,

Move a member from one set to another. Redis Docs
Source§

fn spop<'a, RV, K>(&'a mut self, key: K) -> Result<RV, RedisError>
where RV: FromRedisValue, K: ToRedisArgs + Send + Sync + 'a,

Remove and return a random member from a set. Redis Docs
Source§

fn srandmember<'a, K>( &'a mut self, key: K, ) -> Result<Option<String>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Get one random member from a set. Redis Docs
Source§

fn srandmember_multiple<'a, K>( &'a mut self, key: K, count: usize, ) -> Result<Vec<String>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Get multiple random members from a set. Redis Docs
Source§

fn srem<'a, K, M>(&'a mut self, key: K, member: M) -> Result<usize, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a,

Remove one or more members from a set. Redis Docs
Source§

fn sunion<'a, K>(&'a mut self, keys: K) -> Result<HashSet<String>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Add multiple sets. Redis Docs
Source§

fn sunionstore<'a, D, K>( &'a mut self, dstkey: D, keys: K, ) -> Result<usize, RedisError>
where D: ToRedisArgs + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a,

Add multiple sets and store the resulting set in a key. Redis Docs
Source§

fn zadd<'a, K, S, M>( &'a mut self, key: K, member: M, score: S, ) -> Result<usize, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a,

Add one member to a sorted set, or update its score if it already exists. Redis Docs
Source§

fn zadd_multiple<'a, K, S, M>( &'a mut self, key: K, items: &'a [(S, M)], ) -> Result<usize, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a,

Add multiple members to a sorted set, or update its score if it already exists. Redis Docs
Source§

fn zadd_options<'a, K, S, M>( &'a mut self, key: K, member: M, score: S, options: &'a SortedSetAddOptions, ) -> Result<usize, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a,

Add one member to a sorted set, or update its score if it already exists. Redis Docs
Source§

fn zadd_multiple_options<'a, K, S, M>( &'a mut self, key: K, items: &'a [(S, M)], options: &'a SortedSetAddOptions, ) -> Result<usize, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a,

Add multiple members to a sorted set, or update its score if it already exists. Redis Docs
Source§

fn zcard<'a, K>(&'a mut self, key: K) -> Result<usize, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Get the number of members in a sorted set. Redis Docs
Source§

fn zcount<'a, K, M, MM>( &'a mut self, key: K, min: M, max: MM, ) -> Result<usize, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a, MM: ToRedisArgs + Send + Sync + 'a,

Count the members in a sorted set with scores within the given values. Redis Docs
Source§

fn zincr<'a, K, M, D>( &'a mut self, key: K, member: M, delta: D, ) -> Result<f64, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a, D: ToRedisArgs + Send + Sync + 'a,

Increments the member in a sorted set at key by delta. If the member does not exist, it is added with delta as its score. Redis Docs
Source§

fn zinterstore<'a, D, K>( &'a mut self, dstkey: D, keys: K, ) -> Result<usize, RedisError>
where D: ToRedisArgs + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a,

Intersect multiple sorted sets and store the resulting sorted set in a new key using SUM as aggregation function. Redis Docs
Source§

fn zinterstore_min<'a, D, K>( &'a mut self, dstkey: D, keys: K, ) -> Result<usize, RedisError>
where D: ToRedisArgs + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a,

Intersect multiple sorted sets and store the resulting sorted set in a new key using MIN as aggregation function. Redis Docs
Source§

fn zinterstore_max<'a, D, K>( &'a mut self, dstkey: D, keys: K, ) -> Result<usize, RedisError>
where D: ToRedisArgs + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a,

Intersect multiple sorted sets and store the resulting sorted set in a new key using MAX as aggregation function. Redis Docs
Source§

fn zinterstore_weights<'a, D, K, W>( &'a mut self, dstkey: D, keys: &'a [(K, W)], ) -> Result<usize, RedisError>
where D: ToRedisArgs + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a, W: ToRedisArgs + Send + Sync + 'a,

Commands::zinterstore, but with the ability to specify a multiplication factor for each sorted set by pairing one with each key in a tuple. Redis Docs
Source§

fn zinterstore_min_weights<'a, D, K, W>( &'a mut self, dstkey: D, keys: &'a [(K, W)], ) -> Result<usize, RedisError>
where D: ToRedisArgs + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a, W: ToRedisArgs + Send + Sync + 'a,

Commands::zinterstore_min, but with the ability to specify a multiplication factor for each sorted set by pairing one with each key in a tuple. Redis Docs
Source§

fn zinterstore_max_weights<'a, D, K, W>( &'a mut self, dstkey: D, keys: &'a [(K, W)], ) -> Result<usize, RedisError>
where D: ToRedisArgs + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a, W: ToRedisArgs + Send + Sync + 'a,

Commands::zinterstore_max, but with the ability to specify a multiplication factor for each sorted set by pairing one with each key in a tuple. Redis Docs
Source§

fn zlexcount<'a, K, M, MM>( &'a mut self, key: K, min: M, max: MM, ) -> Result<usize, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a, MM: ToRedisArgs + Send + Sync + 'a,

Count the number of members in a sorted set between a given lexicographical range. Redis Docs
Source§

fn bzpopmax<'a, K>( &'a mut self, key: K, timeout: f64, ) -> Result<Option<(String, String, f64)>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Removes and returns the member with the highest score in a sorted set. Blocks until a member is available otherwise. Redis Docs
Source§

fn zpopmax<'a, K>( &'a mut self, key: K, count: isize, ) -> Result<Vec<String>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Removes and returns up to count members with the highest scores in a sorted set Redis Docs
Source§

fn bzpopmin<'a, K>( &'a mut self, key: K, timeout: f64, ) -> Result<Option<(String, String, f64)>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Removes and returns the member with the lowest score in a sorted set. Blocks until a member is available otherwise. Redis Docs
Source§

fn zpopmin<'a, K>( &'a mut self, key: K, count: isize, ) -> Result<Vec<String>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Removes and returns up to count members with the lowest scores in a sorted set Redis Docs
Source§

fn bzmpop_max<'a, K>( &'a mut self, timeout: f64, keys: K, count: isize, ) -> Result<Option<(String, Vec<(String, f64)>)>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Removes and returns up to count members with the highest scores, from the first non-empty sorted set in the provided list of key names. Blocks until a member is available otherwise. Redis Docs
Source§

fn zmpop_max<'a, K>( &'a mut self, keys: K, count: isize, ) -> Result<Option<(String, Vec<(String, f64)>)>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Removes and returns up to count members with the highest scores, from the first non-empty sorted set in the provided list of key names. Redis Docs
Source§

fn bzmpop_min<'a, K>( &'a mut self, timeout: f64, keys: K, count: isize, ) -> Result<Option<(String, Vec<(String, f64)>)>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Removes and returns up to count members with the lowest scores, from the first non-empty sorted set in the provided list of key names. Blocks until a member is available otherwise. Redis Docs
Source§

fn zmpop_min<'a, K>( &'a mut self, keys: K, count: isize, ) -> Result<Option<(String, Vec<(String, f64)>)>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Removes and returns up to count members with the lowest scores, from the first non-empty sorted set in the provided list of key names. Redis Docs
Source§

fn zrandmember<'a, RV, K>( &'a mut self, key: K, count: Option<isize>, ) -> Result<RV, RedisError>
where RV: FromRedisValue, K: ToRedisArgs + Send + Sync + 'a,

Return up to count random members in a sorted set (or 1 if count == None) Redis Docs
Source§

fn zrandmember_withscores<'a, RV, K>( &'a mut self, key: K, count: isize, ) -> Result<RV, RedisError>
where RV: FromRedisValue, K: ToRedisArgs + Send + Sync + 'a,

Return up to count random members in a sorted set with scores Redis Docs
Source§

fn zrange<'a, K>( &'a mut self, key: K, start: isize, stop: isize, ) -> Result<Vec<String>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Return a range of members in a sorted set, by index Redis Docs
Source§

fn zrange_withscores<'a, K>( &'a mut self, key: K, start: isize, stop: isize, ) -> Result<Vec<(String, f64)>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Return a range of members in a sorted set, by index with scores. Redis Docs
Source§

fn zrangebylex<'a, K, M, MM>( &'a mut self, key: K, min: M, max: MM, ) -> Result<Vec<String>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a, MM: ToRedisArgs + Send + Sync + 'a,

Return a range of members in a sorted set, by lexicographical range. Redis Docs
Source§

fn zrangebylex_limit<'a, K, M, MM>( &'a mut self, key: K, min: M, max: MM, offset: isize, count: isize, ) -> Result<Vec<String>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a, MM: ToRedisArgs + Send + Sync + 'a,

Return a range of members in a sorted set, by lexicographical range with offset and limit. Redis Docs
Source§

fn zrevrangebylex<'a, K, MM, M>( &'a mut self, key: K, max: MM, min: M, ) -> Result<Vec<String>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, MM: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a,

Return a range of members in a sorted set, by lexicographical range. Redis Docs
Source§

fn zrevrangebylex_limit<'a, K, MM, M>( &'a mut self, key: K, max: MM, min: M, offset: isize, count: isize, ) -> Result<Vec<String>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, MM: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a,

Return a range of members in a sorted set, by lexicographical range with offset and limit. Redis Docs
Source§

fn zrangebyscore<'a, K, M, MM>( &'a mut self, key: K, min: M, max: MM, ) -> Result<Vec<String>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a, MM: ToRedisArgs + Send + Sync + 'a,

Return a range of members in a sorted set, by score. Redis Docs
Source§

fn zrangebyscore_withscores<'a, K, M, MM>( &'a mut self, key: K, min: M, max: MM, ) -> Result<Vec<(String, usize)>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a, MM: ToRedisArgs + Send + Sync + 'a,

Return a range of members in a sorted set, by score with scores. Redis Docs
Source§

fn zrangebyscore_limit<'a, K, M, MM>( &'a mut self, key: K, min: M, max: MM, offset: isize, count: isize, ) -> Result<Vec<String>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a, MM: ToRedisArgs + Send + Sync + 'a,

Return a range of members in a sorted set, by score with limit. Redis Docs
Source§

fn zrangebyscore_limit_withscores<'a, K, M, MM>( &'a mut self, key: K, min: M, max: MM, offset: isize, count: isize, ) -> Result<Vec<(String, usize)>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a, MM: ToRedisArgs + Send + Sync + 'a,

Return a range of members in a sorted set, by score with limit with scores. Redis Docs
Source§

fn zrank<'a, K, M>( &'a mut self, key: K, member: M, ) -> Result<Option<usize>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a,

Determine the index of a member in a sorted set. Redis Docs
Source§

fn zrem<'a, K, M>(&'a mut self, key: K, members: M) -> Result<usize, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a,

Remove one or more members from a sorted set. Redis Docs
Source§

fn zrembylex<'a, K, M, MM>( &'a mut self, key: K, min: M, max: MM, ) -> Result<usize, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a, MM: ToRedisArgs + Send + Sync + 'a,

Remove all members in a sorted set between the given lexicographical range. Redis Docs
Source§

fn zremrangebyrank<'a, K>( &'a mut self, key: K, start: isize, stop: isize, ) -> Result<usize, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Remove all members in a sorted set within the given indexes. Redis Docs
Source§

fn zrembyscore<'a, K, M, MM>( &'a mut self, key: K, min: M, max: MM, ) -> Result<usize, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a, MM: ToRedisArgs + Send + Sync + 'a,

Remove all members in a sorted set within the given scores. Redis Docs
Source§

fn zrevrange<'a, K>( &'a mut self, key: K, start: isize, stop: isize, ) -> Result<Vec<String>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Return a range of members in a sorted set, by index, ordered from high to low. Redis Docs
Source§

fn zrevrange_withscores<'a, K>( &'a mut self, key: K, start: isize, stop: isize, ) -> Result<Vec<String>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Return a range of members in a sorted set, by index, with scores ordered from high to low. Redis Docs
Source§

fn zrevrangebyscore<'a, K, MM, M>( &'a mut self, key: K, max: MM, min: M, ) -> Result<Vec<String>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, MM: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a,

Return a range of members in a sorted set, by score. Redis Docs
Source§

fn zrevrangebyscore_withscores<'a, K, MM, M>( &'a mut self, key: K, max: MM, min: M, ) -> Result<Vec<String>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, MM: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a,

Return a range of members in a sorted set, by score with scores. Redis Docs
Source§

fn zrevrangebyscore_limit<'a, K, MM, M>( &'a mut self, key: K, max: MM, min: M, offset: isize, count: isize, ) -> Result<Vec<String>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, MM: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a,

Return a range of members in a sorted set, by score with limit. Redis Docs
Source§

fn zrevrangebyscore_limit_withscores<'a, K, MM, M>( &'a mut self, key: K, max: MM, min: M, offset: isize, count: isize, ) -> Result<Vec<String>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, MM: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a,

Return a range of members in a sorted set, by score with limit with scores. Redis Docs
Source§

fn zrevrank<'a, K, M>( &'a mut self, key: K, member: M, ) -> Result<Option<usize>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a,

Determine the index of a member in a sorted set, with scores ordered from high to low. Redis Docs
Source§

fn zscore<'a, K, M>( &'a mut self, key: K, member: M, ) -> Result<Option<f64>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a,

Get the score associated with the given member in a sorted set. Redis Docs
Source§

fn zscore_multiple<'a, K, M>( &'a mut self, key: K, members: &'a [M], ) -> Result<Option<Vec<f64>>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a,

Get the scores associated with multiple members in a sorted set. Redis Docs
Source§

fn zunionstore<'a, D, K>( &'a mut self, dstkey: D, keys: K, ) -> Result<usize, RedisError>
where D: ToRedisArgs + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a,

Unions multiple sorted sets and store the resulting sorted set in a new key using SUM as aggregation function. Redis Docs
Source§

fn zunionstore_min<'a, D, K>( &'a mut self, dstkey: D, keys: K, ) -> Result<usize, RedisError>
where D: ToRedisArgs + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a,

Unions multiple sorted sets and store the resulting sorted set in a new key using MIN as aggregation function. Redis Docs
Source§

fn zunionstore_max<'a, D, K>( &'a mut self, dstkey: D, keys: K, ) -> Result<usize, RedisError>
where D: ToRedisArgs + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a,

Unions multiple sorted sets and store the resulting sorted set in a new key using MAX as aggregation function. Redis Docs
Source§

fn zunionstore_weights<'a, D, K, W>( &'a mut self, dstkey: D, keys: &'a [(K, W)], ) -> Result<usize, RedisError>
where D: ToRedisArgs + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a, W: ToRedisArgs + Send + Sync + 'a,

Commands::zunionstore, but with the ability to specify a multiplication factor for each sorted set by pairing one with each key in a tuple. Redis Docs
Source§

fn zunionstore_min_weights<'a, D, K, W>( &'a mut self, dstkey: D, keys: &'a [(K, W)], ) -> Result<usize, RedisError>
where D: ToRedisArgs + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a, W: ToRedisArgs + Send + Sync + 'a,

Commands::zunionstore_min, but with the ability to specify a multiplication factor for each sorted set by pairing one with each key in a tuple. Redis Docs
Source§

fn zunionstore_max_weights<'a, D, K, W>( &'a mut self, dstkey: D, keys: &'a [(K, W)], ) -> Result<usize, RedisError>
where D: ToRedisArgs + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a, W: ToRedisArgs + Send + Sync + 'a,

Commands::zunionstore_max, but with the ability to specify a multiplication factor for each sorted set by pairing one with each key in a tuple. Redis Docs
Source§

fn pfadd<'a, K, E>(&'a mut self, key: K, element: E) -> Result<bool, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, E: ToRedisArgs + Send + Sync + 'a,

Adds the specified elements to the specified HyperLogLog. Redis Docs
Source§

fn pfcount<'a, K>(&'a mut self, key: K) -> Result<usize, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Return the approximated cardinality of the set(s) observed by the HyperLogLog at key(s). Redis Docs
Source§

fn pfmerge<'a, D, S>( &'a mut self, dstkey: D, srckeys: S, ) -> Result<(), RedisError>
where D: ToRedisArgs + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a,

Merge N different HyperLogLogs into a single one. Redis Docs
Source§

fn publish<'a, K, E>( &'a mut self, channel: K, message: E, ) -> Result<usize, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, E: ToRedisArgs + Send + Sync + 'a,

Posts a message to the given channel. Redis Docs
Source§

fn spublish<'a, K, E>( &'a mut self, channel: K, message: E, ) -> Result<usize, RedisError>
where K: ToRedisArgs + Send + Sync + 'a, E: ToRedisArgs + Send + Sync + 'a,

Posts a message to the given sharded channel. Redis Docs
Source§

fn object_encoding<'a, K>( &'a mut self, key: K, ) -> Result<Option<String>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Returns the encoding of a key. Redis Docs
Source§

fn object_idletime<'a, K>( &'a mut self, key: K, ) -> Result<Option<usize>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Returns the time in seconds since the last access of a key. Redis Docs
Source§

fn object_freq<'a, K>(&'a mut self, key: K) -> Result<Option<usize>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Returns the logarithmic access frequency counter of a key. Redis Docs
Source§

fn object_refcount<'a, K>( &'a mut self, key: K, ) -> Result<Option<usize>, RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Returns the reference count of a key. Redis Docs
Source§

fn client_getname<'a>(&'a mut self) -> Result<Option<String>, RedisError>

Returns the name of the current connection as set by CLIENT SETNAME. Redis Docs
Source§

fn client_id<'a>(&'a mut self) -> Result<isize, RedisError>

Returns the ID of the current connection. Redis Docs
Source§

fn client_setname<'a, K>( &'a mut self, connection_name: K, ) -> Result<(), RedisError>
where K: ToRedisArgs + Send + Sync + 'a,

Command assigns a name to the current connection. Redis Docs
Source§

fn flushall<'a>(&'a mut self) -> Result<(), RedisError>

Deletes all the keys of all databases Read more
Source§

fn flushall_options<'a>( &'a mut self, options: &'a FlushAllOptions, ) -> Result<(), RedisError>

Deletes all the keys of all databases with options Read more
Source§

fn flushdb<'a>(&'a mut self) -> Result<(), RedisError>

Deletes all the keys of the current database Read more
Source§

fn flushdb_options<'a>( &'a mut self, options: &'a FlushAllOptions, ) -> Result<(), RedisError>

Deletes all the keys of the current database with options Read more
Source§

fn scan<RV>(&mut self) -> Result<Iter<'_, RV>, RedisError>
where RV: FromRedisValue,

Incrementally iterate the keys space.
Source§

fn scan_options<RV>( &mut self, opts: ScanOptions, ) -> Result<Iter<'_, RV>, RedisError>
where RV: FromRedisValue,

Incrementally iterate the keys space with options.
Source§

fn scan_match<P, RV>(&mut self, pattern: P) -> Result<Iter<'_, RV>, RedisError>

Incrementally iterate the keys space for keys matching a pattern.
Source§

fn hscan<K, RV>(&mut self, key: K) -> Result<Iter<'_, RV>, RedisError>

Incrementally iterate hash fields and associated values.
Source§

fn hscan_match<K, P, RV>( &mut self, key: K, pattern: P, ) -> Result<Iter<'_, RV>, RedisError>

Incrementally iterate hash fields and associated values for field names matching a pattern.
Source§

fn sscan<K, RV>(&mut self, key: K) -> Result<Iter<'_, RV>, RedisError>

Incrementally iterate set elements.
Source§

fn sscan_match<K, P, RV>( &mut self, key: K, pattern: P, ) -> Result<Iter<'_, RV>, RedisError>

Incrementally iterate set elements for elements matching a pattern.
Source§

fn zscan<K, RV>(&mut self, key: K) -> Result<Iter<'_, RV>, RedisError>

Incrementally iterate sorted set elements.
Source§

fn zscan_match<K, P, RV>( &mut self, key: K, pattern: P, ) -> Result<Iter<'_, RV>, RedisError>

Incrementally iterate sorted set elements for elements matching a pattern.
Source§

fn get_int<K>(&mut self, key: K) -> Result<Option<isize>, RedisError>
where K: ToRedisArgs,

Get a value from Redis and convert it to an Option<isize>.
Source§

fn mget_ints<K>(&mut self, key: K) -> Result<Vec<Option<isize>>, RedisError>
where K: ToRedisArgs,

Get values from Redis and convert them to Option<isize>s.
Source§

impl<P> UnbanChatMemberSetters for P
where P: HasPayload<Payload = UnbanChatMember>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
Source§

fn only_if_banned(self, value: bool) -> Self

Setter for only_if_banned field.
Source§

impl<P> UnbanChatSenderChatSetters for P
where P: HasPayload<Payload = UnbanChatSenderChat>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn sender_chat_id<T>(self, value: T) -> Self
where T: Into<ChatId>,

Setter for sender_chat_id field.
Source§

impl<P> UnhideGeneralForumTopicSetters for P
where P: HasPayload<Payload = UnhideGeneralForumTopic>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

impl<P> UnpinAllChatMessagesSetters for P
where P: HasPayload<Payload = UnpinAllChatMessages>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

impl<P> UnpinAllForumTopicMessagesSetters for P

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
Source§

impl<P> UnpinAllGeneralForumTopicMessagesSetters for P

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

impl<P> UnpinChatMessageSetters for P
where P: HasPayload<Payload = UnpinChatMessage>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn message_id(self, value: MessageId) -> Self

Setter for message_id field.
Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

impl<P> UpgradeGiftSetters for P
where P: HasPayload<Payload = UpgradeGift>,

Source§

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.
Source§

fn owned_gift_id(self, value: OwnedGiftId) -> Self

Setter for owned_gift_id field.
Source§

fn keep_original_details(self, value: bool) -> Self

Setter for keep_original_details field.
Source§

fn star_count(self, value: u32) -> Self

Setter for star_count field.
Source§

impl<P> UploadStickerFileSetters for P
where P: HasPayload<Payload = UploadStickerFile>,

Source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
Source§

fn sticker(self, value: InputFile) -> Self

Setter for sticker field.
Source§

fn sticker_format(self, value: StickerFormat) -> Self

Setter for sticker_format field.
Source§

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

Source§

fn vzip(self) -> V

Source§

impl<P> VerifyChatSetters for P
where P: HasPayload<Payload = VerifyChat>,

Source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Source§

fn custom_description<T>(self, value: T) -> Self
where T: Into<String>,

Setter for custom_description field.
Source§

impl<P> VerifyUserSetters for P
where P: HasPayload<Payload = VerifyUser>,

Source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
Source§

fn custom_description<T>(self, value: T) -> Self
where T: Into<String>,

Setter for custom_description field.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<P> CloseSetters for P
where P: HasPayload<Payload = Close>,

Source§

impl<R> CryptoRng for R
where R: TryCryptoRng<Error = Infallible> + ?Sized,

Source§

impl<P> GetAvailableGiftsSetters for P
where P: HasPayload<Payload = GetAvailableGifts>,

Source§

impl<P> GetForumTopicIconStickersSetters for P

Source§

impl<P> GetMeSetters for P
where P: HasPayload<Payload = GetMe>,

Source§

impl<P> GetMyStarBalanceSetters for P
where P: HasPayload<Payload = GetMyStarBalance>,

Source§

impl<P> GetWebhookInfoSetters for P
where P: HasPayload<Payload = GetWebhookInfo>,

Source§

impl<P> LogOutSetters for P
where P: HasPayload<Payload = LogOut>,

Source§

impl<R> RngCore for R
where R: Rng,

Source§

impl<R> TryCryptoRng for R
where R: DerefMut, <R as Deref>::Target: TryCryptoRng,