pub struct ReplicationQuery { /* private fields */ }Expand description
A structured RESO replication query
Replication queries are used for bulk data transfer and have different constraints than standard queries:
- Maximum $top limit: 2000 (vs 200 for standard queries)
- No $skip parameter (use next links instead)
- No $orderby parameter (ordered oldest to newest by default)
- No $apply parameter
- No count options
Implementations§
Source§impl ReplicationQuery
impl ReplicationQuery
Sourcepub fn new(resource: impl Into<String>) -> Self
pub fn new(resource: impl Into<String>) -> Self
Create a new replication query for a resource
Creates a basic replication query. Use ReplicationQueryBuilder
for a more convenient fluent API.
§Examples
let query = ReplicationQuery::new("Property");Sourcepub fn to_odata_string(&self) -> String
pub fn to_odata_string(&self) -> String
Convert to OData replication query string
Generates URL path: {resource}/replication?{params}
§Examples
let query = ReplicationQueryBuilder::new("Property")
.filter("StandardStatus eq 'Active'")
.top(2000)
.build()?;
let url = query.to_odata_string();
// Returns: "Property/replication?$filter=StandardStatus%20eq%20%27Active%27&$top=2000"Trait Implementations§
Source§impl Clone for ReplicationQuery
impl Clone for ReplicationQuery
Source§fn clone(&self) -> ReplicationQuery
fn clone(&self) -> ReplicationQuery
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 moreAuto Trait Implementations§
impl Freeze for ReplicationQuery
impl RefUnwindSafe for ReplicationQuery
impl Send for ReplicationQuery
impl Sync for ReplicationQuery
impl Unpin for ReplicationQuery
impl UnwindSafe for ReplicationQuery
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