pub struct ODataConfig {
pub version: ODataVersion,
pub entity: Option<String>,
pub select: Vec<String>,
pub expand: Vec<String>,
pub filter: Option<String>,
pub orderby: Option<String>,
pub page_size: Option<usize>,
}Expand description
OData protocol options for the REST source (#512).
A minimal block — { entity: Orders } — is enough; it derives paging,
the $.value envelope, and (for faucet discover) $metadata parsing.
The query-option fields render into the standard $select/$filter/
$expand/$orderby params.
Fields§
§version: ODataVersionProtocol version (default v4).
entity: Option<String>Entity set to read (appended to base_url as the path, e.g. Orders).
Optional when the path already names the entity.
select: Vec<String>$select — columns to return.
expand: Vec<String>$expand — related entities to inline (one level).
filter: Option<String>$filter — server-side filter expression (verbatim).
orderby: Option<String>$orderby — server-side ordering (verbatim).
page_size: Option<usize>Server page size, sent as Prefer: odata.maxpagesize=<n>.
Trait Implementations§
Source§impl Clone for ODataConfig
impl Clone for ODataConfig
Source§fn clone(&self) -> ODataConfig
fn clone(&self) -> ODataConfig
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 ODataConfig
impl Debug for ODataConfig
Source§impl Default for ODataConfig
impl Default for ODataConfig
Source§fn default() -> ODataConfig
fn default() -> ODataConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ODataConfig
impl<'de> Deserialize<'de> for ODataConfig
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 JsonSchema for ODataConfig
impl JsonSchema for ODataConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ODataConfig
impl PartialEq for ODataConfig
Source§impl Serialize for ODataConfig
impl Serialize for ODataConfig
impl StructuralPartialEq for ODataConfig
Auto Trait Implementations§
impl Freeze for ODataConfig
impl RefUnwindSafe for ODataConfig
impl Send for ODataConfig
impl Sync for ODataConfig
impl Unpin for ODataConfig
impl UnsafeUnpin for ODataConfig
impl UnwindSafe for ODataConfig
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