pub enum HttpMethod {
GET,
POST,
PUT,
DELETE,
}
Expand description
HTTP method types for API requests
Represents the standard HTTP methods used by KiteConnect API endpoints. Each endpoint uses a specific HTTP method based on the operation type:
- GET: Data retrieval (quotes, holdings, orders)
- POST: Resource creation (place orders, create GTT)
- PUT: Resource updates (modify orders, update GTT)
- DELETE: Resource deletion (cancel orders, delete GTT)
§Example
use kiteconnect_async_wasm::connect::endpoints::HttpMethod;
let method = HttpMethod::GET;
assert_eq!(method.as_str(), "GET");
// Check method type
assert!(matches!(method, HttpMethod::GET));
Variants§
GET
HTTP GET method for data retrieval
POST
HTTP POST method for resource creation
PUT
HTTP PUT method for resource updates
DELETE
HTTP DELETE method for resource deletion
Implementations§
Trait Implementations§
Source§impl Clone for HttpMethod
impl Clone for HttpMethod
Source§fn clone(&self) -> HttpMethod
fn clone(&self) -> HttpMethod
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 HttpMethod
impl Debug for HttpMethod
Source§impl Hash for HttpMethod
impl Hash for HttpMethod
Source§impl PartialEq for HttpMethod
impl PartialEq for HttpMethod
impl Eq for HttpMethod
impl StructuralPartialEq for HttpMethod
Auto Trait Implementations§
impl Freeze for HttpMethod
impl RefUnwindSafe for HttpMethod
impl Send for HttpMethod
impl Sync for HttpMethod
impl Unpin for HttpMethod
impl UnwindSafe for HttpMethod
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.