pub struct GetUserParams {
pub api_key: Option<String>,
pub user: Option<String>,
pub mode: Option<u8>,
pub typee: Option<String>,
pub event_days: Option<u8>,
}Expand description
获取用户信息的参数 Parameters for getting user information
Fields§
§api_key: Option<String>§user: Option<String>§mode: Option<u8>§typee: Option<String>§event_days: Option<u8>Implementations§
Source§impl GetUserParams
impl GetUserParams
pub fn api_key(self, api_key: String) -> Self
pub fn user(self, user: String) -> Self
pub fn mode(self, mode: u8) -> Self
pub fn typee(self, typee: String) -> Self
pub fn event_days(self, event_days: u8) -> Self
Sourcepub fn build_params(&self) -> Vec<(String, String)>
pub fn build_params(&self) -> Vec<(String, String)>
构建参数列表 Build parameter list
Sourcepub fn to_raw(&self) -> GetUserParamsRaw
pub fn to_raw(&self) -> GetUserParamsRaw
转换为原始参数 Convert to raw parameters
Trait Implementations§
Source§impl Clone for GetUserParams
impl Clone for GetUserParams
Source§fn clone(&self) -> GetUserParams
fn clone(&self) -> GetUserParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GetUserParams
impl Debug for GetUserParams
Source§impl Default for GetUserParams
impl Default for GetUserParams
Source§fn default() -> GetUserParams
fn default() -> GetUserParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GetUserParams
impl<'de> Deserialize<'de> for GetUserParams
Source§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
Source§impl PartialEq for GetUserParams
impl PartialEq for GetUserParams
Source§fn eq(&self, other: &GetUserParams) -> bool
fn eq(&self, other: &GetUserParams) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for GetUserParams
impl Serialize for GetUserParams
impl StructuralPartialEq for GetUserParams
Auto Trait Implementations§
impl Freeze for GetUserParams
impl RefUnwindSafe for GetUserParams
impl Send for GetUserParams
impl Sync for GetUserParams
impl Unpin for GetUserParams
impl UnsafeUnpin for GetUserParams
impl UnwindSafe for GetUserParams
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