pub struct AiSourcePolicy {
pub purpose: String,
pub rules: Vec<String>,
pub editable: Vec<String>,
pub locked: Vec<String>,
}Expand description
Author-provided policy consumed only by the optional AI bridge.
Fields§
§purpose: StringCompact statement of document purpose.
rules: Vec<String>Bounded textual edit rules.
editable: Vec<String>IDs the bridge may edit. Empty means policy default.
locked: Vec<String>IDs the bridge must never edit.
Trait Implementations§
Source§impl Clone for AiSourcePolicy
impl Clone for AiSourcePolicy
Source§fn clone(&self) -> AiSourcePolicy
fn clone(&self) -> AiSourcePolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AiSourcePolicy
impl Debug for AiSourcePolicy
Source§impl<'de> Deserialize<'de> for AiSourcePolicy
impl<'de> Deserialize<'de> for AiSourcePolicy
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
Source§impl PartialEq for AiSourcePolicy
impl PartialEq for AiSourcePolicy
Source§impl Serialize for AiSourcePolicy
impl Serialize for AiSourcePolicy
impl StructuralPartialEq for AiSourcePolicy
Auto Trait Implementations§
impl Freeze for AiSourcePolicy
impl RefUnwindSafe for AiSourcePolicy
impl Send for AiSourcePolicy
impl Sync for AiSourcePolicy
impl Unpin for AiSourcePolicy
impl UnsafeUnpin for AiSourcePolicy
impl UnwindSafe for AiSourcePolicy
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<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.