Struct zohohorrorshow::models::portal::PortalRequest
source · pub struct PortalRequest(_);
Expand description
Request for Portal(s) from Zoho
Trait Implementations§
source§impl Clone for PortalRequest
impl Clone for PortalRequest
source§fn clone(&self) -> PortalRequest
fn clone(&self) -> PortalRequest
Returns a copy 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 PortalRequest
impl Debug for PortalRequest
source§impl ModelRequest for PortalRequest
impl ModelRequest for PortalRequest
source§fn params(&self) -> Option<HashMap<String, String>>
fn params(&self) -> Option<HashMap<String, String>>
Set parameters to send with this request, in the standard
&key=value
formatsource§fn access_token(&self) -> String
fn access_token(&self) -> String
Find or create the access token with which we can authenticate the request
source§fn filter(self, _param: impl FilterOptions + Display) -> Self
fn filter(self, _param: impl FilterOptions + Display) -> Self
For GET requests, set filters to reduce the number of hits returned
source§impl RequestParameters for PortalRequest
impl RequestParameters for PortalRequest
§type ModelCollection = ZohoPortals
type ModelCollection = ZohoPortals
ModelCollection must be a “ZohoModels” struct, which contains just Vec.
The Zoho Projects API always returns an object containing a JSONArray of whatever model
is being requested, even if requested by ID and therefore returning either a single item
or an error.
§type NewModel = NewPortal
type NewModel = NewPortal
NewModel is a struct containing the fields which the Zoho API accepts to create a new item
of the model type. For those models which Zoho does not accept creation events though the API
this is an empty struct.
source§fn post(&self, _data: Self::NewModel) -> Result<Option<Self::ModelCollection>>
fn post(&self, _data: Self::NewModel) -> Result<Option<Self::ModelCollection>>
Send an HTTP POST request to the model
source§fn put(&self, _data: Self::NewModel) -> Result<Option<Self::ModelCollection>>
fn put(&self, _data: Self::NewModel) -> Result<Option<Self::ModelCollection>>
Send an HTTP PUT request to the model
Auto Trait Implementations§
impl RefUnwindSafe for PortalRequest
impl Send for PortalRequest
impl Sync for PortalRequest
impl Unpin for PortalRequest
impl UnwindSafe for PortalRequest
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