pub struct SchemaVersion {
pub id: SchemaVersionId,
pub upstream_id: String,
pub method: String,
pub version: u32,
pub payload: Arc<Value>,
pub content_hash: String,
pub captured_at: DateTime<Utc>,
}Expand description
A single captured schema payload for one method on one upstream.
payload is the merged result field (post-pagination) as JSON.
Arc wrapping keeps clones cheap when handing versions out of the
store to multiple readers.
Fields§
§id: SchemaVersionId§upstream_id: String§method: String§version: u32§payload: Arc<Value>§content_hash: String§captured_at: DateTime<Utc>Trait Implementations§
Source§impl Clone for SchemaVersion
impl Clone for SchemaVersion
Source§fn clone(&self) -> SchemaVersion
fn clone(&self) -> SchemaVersion
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 SchemaVersion
impl RefUnwindSafe for SchemaVersion
impl Send for SchemaVersion
impl Sync for SchemaVersion
impl Unpin for SchemaVersion
impl UnsafeUnpin for SchemaVersion
impl UnwindSafe for SchemaVersion
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