pub struct Variant {
pub match_expr: MatchExpr,
pub body: VariantBody,
pub revalidate_after_ms: Option<u64>,
}Expand description
One projection of the artifact for a class of consumers.
Fields§
§match_expr: MatchExprWhich contexts this variant serves.
body: VariantBodyWhat those consumers receive.
revalidate_after_ms: Option<u64>Advisory freshness window in ms for resolutions served from this
variant (G-3). None ⇒ crate::DEFAULT_REVALIDATE_MS. Short for
sensitive artifacts.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Variant
impl<'de> Deserialize<'de> for Variant
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
impl Eq for Variant
impl StructuralPartialEq for Variant
Auto Trait Implementations§
impl Freeze for Variant
impl RefUnwindSafe for Variant
impl Send for Variant
impl Sync for Variant
impl Unpin for Variant
impl UnsafeUnpin for Variant
impl UnwindSafe for Variant
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