pub struct IdTemplate(/* private fields */);Expand description
A document-_id template with {partition} and {body.<path>} placeholders.
Interpretation lives in osproxy-rewrite; this is just the parsed-on-demand
source string. {partition} expands to the resolved partition id;
{body.<path>} expands to a scalar pulled from the document at <path>.
Implementations§
Source§impl IdTemplate
impl IdTemplate
Sourcepub fn references_partition(&self) -> bool
pub fn references_partition(&self) -> bool
Whether the template references the partition id placeholder. Used to
reject a SharedIndex rule that would allow cross-tenant id collisions.
Trait Implementations§
Source§impl Clone for IdTemplate
impl Clone for IdTemplate
Source§fn clone(&self) -> IdTemplate
fn clone(&self) -> IdTemplate
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 IdTemplate
impl Debug for IdTemplate
impl Eq for IdTemplate
Source§impl PartialEq for IdTemplate
impl PartialEq for IdTemplate
Source§fn eq(&self, other: &IdTemplate) -> bool
fn eq(&self, other: &IdTemplate) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for IdTemplate
Auto Trait Implementations§
impl Freeze for IdTemplate
impl RefUnwindSafe for IdTemplate
impl Send for IdTemplate
impl Sync for IdTemplate
impl Unpin for IdTemplate
impl UnsafeUnpin for IdTemplate
impl UnwindSafe for IdTemplate
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