pub struct ApiVisibilityReviewCursor { /* private fields */ }Expand description
Opaque v2 continuation token bound to one resource and relation position.
The token contains a versioned, domain-separated resource digest and the last scanned relation ID encoded as lowercase hexadecimal bytes. It never embeds the clear-text resource identifier. The digest is pseudonymous, not confidential: low-entropy resource IDs remain susceptible to dictionary attacks. The token is deterministic but is not authenticated or encrypted; a transport may sign or MAC its serialized form before exposing it outside a trusted boundary.
Implementations§
Source§impl ApiVisibilityReviewCursor
impl ApiVisibilityReviewCursor
Sourcepub fn new(
resource_scope: &EntityId,
after_relation_id: RelationId,
) -> Result<Self, ApiObservationError>
pub fn new( resource_scope: &EntityId, after_relation_id: RelationId, ) -> Result<Self, ApiObservationError>
Creates a canonical v2 cursor for one resource and relation position.
Sourcepub fn parse(encoded: impl Into<String>) -> Result<Self, ApiObservationError>
pub fn parse(encoded: impl Into<String>) -> Result<Self, ApiObservationError>
Parses and validates one canonical serialized v2 cursor.
Trait Implementations§
Source§impl Clone for ApiVisibilityReviewCursor
impl Clone for ApiVisibilityReviewCursor
Source§fn clone(&self) -> ApiVisibilityReviewCursor
fn clone(&self) -> ApiVisibilityReviewCursor
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 ApiVisibilityReviewCursor
impl Debug for ApiVisibilityReviewCursor
Source§impl<'de> Deserialize<'de> for ApiVisibilityReviewCursor
impl<'de> Deserialize<'de> for ApiVisibilityReviewCursor
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 Display for ApiVisibilityReviewCursor
impl Display for ApiVisibilityReviewCursor
impl Eq for ApiVisibilityReviewCursor
Source§impl Hash for ApiVisibilityReviewCursor
impl Hash for ApiVisibilityReviewCursor
Source§impl Ord for ApiVisibilityReviewCursor
impl Ord for ApiVisibilityReviewCursor
Source§fn cmp(&self, other: &ApiVisibilityReviewCursor) -> Ordering
fn cmp(&self, other: &ApiVisibilityReviewCursor) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for ApiVisibilityReviewCursor
impl PartialOrd for ApiVisibilityReviewCursor
impl StructuralPartialEq for ApiVisibilityReviewCursor
Auto Trait Implementations§
impl Freeze for ApiVisibilityReviewCursor
impl RefUnwindSafe for ApiVisibilityReviewCursor
impl Send for ApiVisibilityReviewCursor
impl Sync for ApiVisibilityReviewCursor
impl Unpin for ApiVisibilityReviewCursor
impl UnsafeUnpin for ApiVisibilityReviewCursor
impl UnwindSafe for ApiVisibilityReviewCursor
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more