Skip to main content

SecurityPolicyV1

Struct SecurityPolicyV1 

Source
pub struct SecurityPolicyV1 {
Show 16 fields pub excluded_paths: Option<Vec<String>>, pub block_secrets: Option<bool>, pub pii: Option<PolicyActionV1>, pub classification: Option<PolicyActionV1>, pub blocked_labels: Option<Vec<String>>, pub allowed_models: Option<Vec<Vec<String>>>, pub external_model_excluded_classes: Option<Vec<String>>, pub confidential_out_of_sharing: Option<bool>, pub blocked_model_origins: Option<Vec<String>>, pub blocked_host_countries: Option<Vec<String>>, pub vendor_direct_cn: Option<bool>, pub allowed_providers: Option<Vec<String>>, pub require_proxy: Option<bool>, pub readable_roots: Option<Vec<String>>, pub never_send: Option<Vec<String>>, pub other: BTreeMap<String, Value>,
}
Expand description

security of an effective policy. Absent member = no level sets it.

Fields§

§excluded_paths: Option<Vec<String>>§block_secrets: Option<bool>§pii: Option<PolicyActionV1>§classification: Option<PolicyActionV1>§blocked_labels: Option<Vec<String>>§allowed_models: Option<Vec<Vec<String>>>§external_model_excluded_classes: Option<Vec<String>>§confidential_out_of_sharing: Option<bool>§blocked_model_origins: Option<Vec<String>>

Countries of origin whose model weights are never used (catalog origin_country), whatever the host.

§blocked_host_countries: Option<Vec<String>>

Countries where no model request is processed (catalog host_country, vendors’ own APIs included).

§vendor_direct_cn: Option<bool>

false forbids the local opt-in to a vendor’s own API processed in CN (x-merge: false_wins).

§allowed_providers: Option<Vec<String>>

ent2: upstream providers the proxy may forward to (anthropic, openai, bedrock, local, …); x-merge: intersect.

§require_proxy: Option<bool>

ent2: agent model traffic must go through the LeanCTX proxy; x-merge: or.

§readable_roots: Option<Vec<String>>

ent2: path globs ({project} and ~ allowed) LeanCTX tools and hooked native reads may read; x-merge: intersect.

§never_send: Option<Vec<String>>

ent2: gitignore globs whose content is never read into context nor sent to a model or Cloud; x-merge: union.

§other: BTreeMap<String, Value>

Members this crate does not know (reported as unenforced).

Trait Implementations§

Source§

impl Clone for SecurityPolicyV1

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SecurityPolicyV1

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for SecurityPolicyV1

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for SecurityPolicyV1

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for SecurityPolicyV1

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for SecurityPolicyV1

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for SecurityPolicyV1

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.