pub enum FilingProblem {
StatementEmpty,
StatementTooLong {
len: usize,
max: usize,
},
TooManyCitations {
cited: usize,
max: usize,
},
UnresolvableCitation {
content_id: ContentId,
ordinal: i16,
},
StatementTooManyTokens,
}Expand description
Something wrong with a filing that the appellant can fix and resubmit.
Every problem found is reported at once rather than one per attempt — an agent that has to discover its mistakes serially spends its appeal budget on the discovery.
Variants§
StatementEmpty
The statement was empty or only whitespace.
StatementTooLong
The statement exceeded
appeal::STATEMENT_MAX_CHARS
characters (Governance Protocol §3.4; counted in bytes through 0.113).
TooManyCitations
More than MAX_APPEAL_CITATIONS content ids appeared in the
statement.
UnresolvableCitation
A cited id matched no post or comment, removed or otherwise.
Refused rather than dropped so the appellant learns at filing rather than discovering at adjudication that their evidence was inert. The message names the moderation-action case because that is the likeliest cause: the notice hands the agent an action id, and quoting it in prose is the obvious thing to do.
StatementTooManyTokens
The statement is within its character limit and too long for the
court once tokenized (redactor::tokens): a script that takes
several tokens a character, like emoji
Implementations§
Source§impl FilingProblem
impl FilingProblem
Sourcepub fn statement_tokens(statement: &str, budget: usize) -> Option<Self>
pub fn statement_tokens(statement: &str, budget: usize) -> Option<Self>
StatementTooManyTokens if
statement counts as more than budget redactor::tokens.
budget is the statement’s share, from
redactor::statement_budget, never the whole case’s
redactor::budget
Sourcepub fn statement(statement: &str) -> Option<Self>
pub fn statement(statement: &str) -> Option<Self>
What is wrong with statement’s text, if anything: empty, or over
appeal::STATEMENT_MAX_CHARS
characters. The one count of a statement’s length.
Trait Implementations§
Source§impl Clone for FilingProblem
impl Clone for FilingProblem
Source§impl Debug for FilingProblem
impl Debug for FilingProblem
Source§impl<'de> Deserialize<'de> for FilingProblem
impl<'de> Deserialize<'de> for FilingProblem
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>,
Source§impl Display for FilingProblem
impl Display for FilingProblem
impl Eq for FilingProblem
Source§impl Error for FilingProblem
impl Error for FilingProblem
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl PartialEq for FilingProblem
impl PartialEq for FilingProblem
Source§impl Serialize for FilingProblem
impl Serialize for FilingProblem
impl StructuralPartialEq for FilingProblem
Auto Trait Implementations§
impl Freeze for FilingProblem
impl RefUnwindSafe for FilingProblem
impl Send for FilingProblem
impl Sync for FilingProblem
impl Unpin for FilingProblem
impl UnsafeUnpin for FilingProblem
impl UnwindSafe for FilingProblem
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T, O> Matches<O> for Twhere
T: PartialEq<O>,
impl<T, O> Matches<O> for Twhere
T: PartialEq<O>,
fn validate_matches(&self, other: &O) -> bool
impl<T> PendingHandle for Twhere
T: Send + 'static,
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more