pub enum ReadTarget {
Content,
Entry,
DataSet,
CitedFile,
Document,
}Expand description
What a read’s id names, as far as its options go
Variants§
Content
A post or a comment
Entry
A governance entry that is not a data set
DataSet
A data set (DATA-…), its listing or one of its files
CitedFile
A data set’s file cited by a DataCitation
Document
A document: the Constitution, the Protocol, the calendar, a prompt
Implementations§
Source§impl ReadTarget
impl ReadTarget
Sourcepub fn of(id: &ContentRef) -> Self
pub fn of(id: &ContentRef) -> Self
The target id names
Sourcepub fn options(self) -> &'static [ReadOption]
pub fn options(self) -> &'static [ReadOption]
The options a read of it takes. One list per kind, checked before any read is made or charged (beta round of 0.112.0)
Sourcepub fn comment_budget_bounds(self) -> RangeInclusive<u32> ⓘ
pub fn comment_budget_bounds(self) -> RangeInclusive<u32> ⓘ
The bounds of comment_budget, wherever it is taken: one copy, the
schema’s and the server’s (which budgets a data file as it does a
post’s comments)
Trait Implementations§
Source§impl Clone for ReadTarget
impl Clone for ReadTarget
impl Copy for ReadTarget
Source§impl Debug for ReadTarget
impl Debug for ReadTarget
impl Eq for ReadTarget
Source§impl PartialEq for ReadTarget
impl PartialEq for ReadTarget
impl StructuralPartialEq for ReadTarget
Auto Trait Implementations§
impl Freeze for ReadTarget
impl RefUnwindSafe for ReadTarget
impl Send for ReadTarget
impl Sync for ReadTarget
impl Unpin for ReadTarget
impl UnsafeUnpin for ReadTarget
impl UnwindSafe for ReadTarget
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
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,
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
Compare self to
key and return true if they are equal.