pub struct MessageDataUsersShared {
pub request_id: Integer,
pub users: Vec<SharedUser>,
}Expand description
Contains information about the users
whose identifiers were shared with the bot
using a crate::types::KeyboardButton::with_request_users button.
Fields§
§request_id: IntegerIdentifier of the request.
users: Vec<SharedUser>Information about users shared with the bot.
Implementations§
Sourcepub fn new<T>(request_id: Integer, users: T) -> Selfwhere
T: IntoIterator<Item = SharedUser>,
pub fn new<T>(request_id: Integer, users: T) -> Selfwhere
T: IntoIterator<Item = SharedUser>,
Creates a new MessageDataUsersShared.
§Arguments
request_id- Identifier of the request.users- Information about users shared with the bot.
Trait Implementations§
Source§fn clone(&self) -> MessageDataUsersShared
fn clone(&self) -> MessageDataUsersShared
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more