#[non_exhaustive]pub struct CacheInfo {
pub etag: Option<String>,
pub cache_control: Option<String>,
}Expand description
ETag data of a record from companies().get() or get_if_none_match(), for callers who
keep records themselves. The SDK keeps no cache of company records.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.etag: Option<String>ETag header; pass it to companies().get_if_none_match() later.
cache_control: Option<String>Cache-Control header (max-age says how long your own copy stays fresh).
Trait Implementations§
impl Eq for CacheInfo
impl StructuralPartialEq for CacheInfo
Auto Trait Implementations§
impl Forget for CacheInfo
impl Freeze for CacheInfo
impl Move for CacheInfo
impl RefUnwindSafe for CacheInfo
impl Send for CacheInfowhere
RawVecInner: Send,
impl Sync for CacheInfowhere
RawVecInner: Sync,
impl Unpin for CacheInfo
impl UnsafeUnpin for CacheInfo
impl UnwindSafe for CacheInfowhere
RawVecInner: UnwindSafe,
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