pub struct SchemaCache {
pub version: u32,
pub retrieved_at: DateTime<Utc>,
pub schemas: Vec<String>,
pub fingerprint: String,
pub schema: DbSchema,
}Fields§
§version: u32§retrieved_at: DateTime<Utc>§schemas: Vec<String>§fingerprint: String§schema: DbSchemaImplementations§
Source§impl SchemaCache
impl SchemaCache
pub fn cache_path(config: &SchemaCacheConfig) -> PathBuf
pub async fn load_or_refresh<C: CheckClient>( client: &C, config: &SchemaCacheConfig, ) -> CheckResult<(Self, SchemaCacheLoad)>
Trait Implementations§
Source§impl Clone for SchemaCache
impl Clone for SchemaCache
Source§fn clone(&self) -> SchemaCache
fn clone(&self) -> SchemaCache
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 moreSource§impl Debug for SchemaCache
impl Debug for SchemaCache
Source§impl<'de> Deserialize<'de> for SchemaCache
impl<'de> Deserialize<'de> for SchemaCache
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
Auto Trait Implementations§
impl Freeze for SchemaCache
impl RefUnwindSafe for SchemaCache
impl Send for SchemaCache
impl Sync for SchemaCache
impl Unpin for SchemaCache
impl UnwindSafe for SchemaCache
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