pub struct OperationSpec {
pub op: String,
pub method: String,
pub path: String,
pub paging: Option<String>,
pub filter: Option<Vec<String>>,
pub search_by: Option<Vec<String>>,
pub order_by: Option<Vec<String>>,
}
Expand description
Operation specification for API endpoints
Fields§
§op: String
§method: String
§path: String
§paging: Option<String>
§filter: Option<Vec<String>>
§search_by: Option<Vec<String>>
§order_by: Option<Vec<String>>
Implementations§
Source§impl OperationSpec
impl OperationSpec
Sourcepub fn supports_paging(&self) -> bool
pub fn supports_paging(&self) -> bool
Check if operation supports paging
Sourcepub fn supports_filtering(&self) -> bool
pub fn supports_filtering(&self) -> bool
Check if operation supports filtering
Sourcepub fn supports_searching(&self) -> bool
pub fn supports_searching(&self) -> bool
Check if operation supports searching
Sourcepub fn supports_ordering(&self) -> bool
pub fn supports_ordering(&self) -> bool
Check if operation supports ordering
Trait Implementations§
Source§impl Clone for OperationSpec
impl Clone for OperationSpec
Source§fn clone(&self) -> OperationSpec
fn clone(&self) -> OperationSpec
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 OperationSpec
impl Debug for OperationSpec
Source§impl<'de> Deserialize<'de> for OperationSpec
impl<'de> Deserialize<'de> for OperationSpec
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
Auto Trait Implementations§
impl Freeze for OperationSpec
impl RefUnwindSafe for OperationSpec
impl Send for OperationSpec
impl Sync for OperationSpec
impl Unpin for OperationSpec
impl UnwindSafe for OperationSpec
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