pub struct Limits {
pub stories: Vec<String>,
pub plain_text_runs: bool,
pub refuses_opaque_ranges: bool,
pub reads_legacy_doc: bool,
pub input: InputBudget,
}Expand description
Documented scope limits an agent must plan around.
Fields§
§stories: Vec<String>Story kinds read and edit address: body, then the kind of
each entry of the snapshot’s stories (header, footer, footnotes,
endnotes). A selector names a story by its id, the part’s file stem
(header1, {"story": "footnotes", "index": 0}), which
read --json lists for the document at hand. Comments are counted in
summary but are not stories; text boxes are not stories either, and
their owner paragraph carries the text_box_omitted limitation.
plain_text_runs: boolfalse: an inserted run is plain text, so a \t or \n writes a
tab or line break; other control characters and the symbol
placeholder U+FFFC are refused.
refuses_opaque_ranges: booltrue: edit ranges crossing fields, hyperlinks, content controls,
revisions and symbols are refused. A range over a tab, a line
break or a non-breaking hyphen removes it; a page or column break
stays. A comment edits nothing and may cover any of them; its
anchor text is the paragraph as it reads, so it cannot start or
end in deleted text.
reads_legacy_doc: boolfalse: legacy .doc input is not read. An OLE compound file (a
Word 97-2003 .doc, or an encrypted document of any Word version)
is refused with LEGACY_DOC on every entry point, and RTF with
UNSUPPORTED_PACKAGE.
input: InputBudgetPackage budgets crate::admission::admit enforces (read and
edit use these defaults; the redline comparer uses the roomier
compare). Larger input is refused with INPUT_LIMIT.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Limits
impl<'de> Deserialize<'de> for Limits
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Limits, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Limits, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for Limits
Source§impl Serialize for Limits
impl Serialize for Limits
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for Limits
Auto Trait Implementations§
impl Forget for Limits
impl Freeze for Limits
impl Move for Limits
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnsafeUnpin for Limits
impl UnwindSafe for Limits
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.