pub enum CompileRefusal {
Document(CompilerRefusal),
Digest {
digest: ContentDigest,
length: Number<2049, { u64::MAX }>,
},
}Expand description
An oversized compiler refusal is represented by its digest and byte length.
Variants§
Trait Implementations§
Source§impl Clone for CompileRefusal
impl Clone for CompileRefusal
Source§impl Debug for CompileRefusal
impl Debug for CompileRefusal
Source§impl<'de> Deserialize<'de> for CompileRefusal
impl<'de> Deserialize<'de> for CompileRefusal
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 JsonSchema for CompileRefusal
impl JsonSchema for CompileRefusal
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for CompileRefusal
impl PartialEq for CompileRefusal
Source§impl Serialize for CompileRefusal
impl Serialize for CompileRefusal
impl StructuralPartialEq for CompileRefusal
Auto Trait Implementations§
impl Freeze for CompileRefusal
impl RefUnwindSafe for CompileRefusal
impl Send for CompileRefusal
impl Sync for CompileRefusal
impl Unpin for CompileRefusal
impl UnsafeUnpin for CompileRefusal
impl UnwindSafe for CompileRefusal
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