pub enum CodeGraphCorroborationAnchorLimit {
Bounded(NonZeroUsize),
Unlimited,
}Expand description
Effective per-repository limit for source-symbol corroboration through CodeGraph.
The workspace manifest keeps -1 as its portable unlimited sentinel, but resolved policy and
consumers use this type so that sentinel handling does not leak beyond the serde boundary.
Variants§
Bounded(NonZeroUsize)
Corroborate at most this many source-symbol anchors per repository.
Unlimited
Do not apply a count limit.
Implementations§
Source§impl CodeGraphCorroborationAnchorLimit
impl CodeGraphCorroborationAnchorLimit
Sourcepub const fn bounded(self) -> Option<NonZeroUsize>
pub const fn bounded(self) -> Option<NonZeroUsize>
Returns the bounded limit, or None when corroboration is unlimited.
Trait Implementations§
impl Copy for CodeGraphCorroborationAnchorLimit
Source§impl<'de> Deserialize<'de> for CodeGraphCorroborationAnchorLimit
impl<'de> Deserialize<'de> for CodeGraphCorroborationAnchorLimit
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
impl Eq for CodeGraphCorroborationAnchorLimit
Source§impl JsonSchema for CodeGraphCorroborationAnchorLimit
impl JsonSchema for CodeGraphCorroborationAnchorLimit
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 moreimpl StructuralPartialEq for CodeGraphCorroborationAnchorLimit
Auto Trait Implementations§
impl Freeze for CodeGraphCorroborationAnchorLimit
impl RefUnwindSafe for CodeGraphCorroborationAnchorLimit
impl Send for CodeGraphCorroborationAnchorLimit
impl Sync for CodeGraphCorroborationAnchorLimit
impl Unpin for CodeGraphCorroborationAnchorLimit
impl UnsafeUnpin for CodeGraphCorroborationAnchorLimit
impl UnwindSafe for CodeGraphCorroborationAnchorLimit
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
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
Compare self to
key and return true if they are equal.