#[non_exhaustive]pub enum RequestSize {
Smaller,
NotSmaller,
Other(String),
}Expand description
On a prompt drop, whether the request body shrank compared with the earlier step.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Smaller
The current request body is shorter than the earlier step’s.
NotSmaller
The current request body is not shorter.
Other(String)
A value this version of the contract does not know, kept
exactly as received. Build values from strings with
from_wire, so a known string never lands here.
Implementations§
Source§impl RequestSize
impl RequestSize
Trait Implementations§
Source§impl Clone for RequestSize
impl Clone for RequestSize
Source§impl Debug for RequestSize
impl Debug for RequestSize
Source§impl<'de> Deserialize<'de> for RequestSize
impl<'de> Deserialize<'de> for RequestSize
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RequestSize
Source§impl Hash for RequestSize
impl Hash for RequestSize
Source§impl PartialEq for RequestSize
impl PartialEq for RequestSize
Source§impl Serialize for RequestSize
impl Serialize for RequestSize
impl StructuralPartialEq for RequestSize
Auto Trait Implementations§
impl Freeze for RequestSize
impl RefUnwindSafe for RequestSize
impl Send for RequestSize
impl Sync for RequestSize
impl Unpin for RequestSize
impl UnsafeUnpin for RequestSize
impl UnwindSafe for RequestSize
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