pub struct CFRecentActionsCommand {
pub max_count: i64,
}
Expand description
Struct for sending recentActions
requests to the Codeforces API.
Returns recent actions.
If correctly parsed, the response object will be of type
responses::CFResult::CFRecentActionVec
.
More details for the recentActions
command can be found
here.
§Examples
let x = CFRecentActionsCommand {
max_count: 3,
};
match x.get(api_key, api_secret) {
Ok(CFResult::CFRecentActionVec(v)) => {
// your code here
},
_ => {
panic!("API request failed");
}
}
Fields§
§max_count: i64
Number of recent actions to return. Can be up to 100.
Trait Implementations§
Source§impl CFAPIRequestable for CFRecentActionsCommand
impl CFAPIRequestable for CFRecentActionsCommand
Source§fn query_params(&self) -> Vec<(&'static str, String)>
fn query_params(&self) -> Vec<(&'static str, String)>
Method which returns a Vec of pairs (key, val) which will be mapped
onto URL query parameters. Used internally and not much use for most
people.
Source§fn method_name(&self) -> &'static str
fn method_name(&self) -> &'static str
Method which returns a str slice of the method name (eg. “user.info”).
Used internally and not much use for most
people.
Source§impl Clone for CFRecentActionsCommand
impl Clone for CFRecentActionsCommand
Source§fn clone(&self) -> CFRecentActionsCommand
fn clone(&self) -> CFRecentActionsCommand
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§impl Debug for CFRecentActionsCommand
impl Debug for CFRecentActionsCommand
Source§impl PartialEq for CFRecentActionsCommand
impl PartialEq for CFRecentActionsCommand
impl Eq for CFRecentActionsCommand
impl StructuralPartialEq for CFRecentActionsCommand
Auto Trait Implementations§
impl Freeze for CFRecentActionsCommand
impl RefUnwindSafe for CFRecentActionsCommand
impl Send for CFRecentActionsCommand
impl Sync for CFRecentActionsCommand
impl Unpin for CFRecentActionsCommand
impl UnwindSafe for CFRecentActionsCommand
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.