pub struct SettingsEdit {
pub kind: EditKind,
pub allowed: Vec<String>,
pub required: bool,
pub group: Option<String>,
}Expand description
What the editor needs to draw a key’s control and to know which entry it belongs to.
Fields§
§kind: EditKind§allowed: Vec<String>The accepted names for an enum, empty otherwise.
required: boolWhether adding the owning entry requires the key.
group: Option<String>The repeated entry a key belongs to: account, project, slack,
model or org. Absent for a table’s own keys.
Trait Implementations§
Source§impl Clone for SettingsEdit
impl Clone for SettingsEdit
Source§impl Debug for SettingsEdit
impl Debug for SettingsEdit
Source§impl<'de> Deserialize<'de> for SettingsEdit
impl<'de> Deserialize<'de> for SettingsEdit
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 SettingsEdit
impl PartialEq for SettingsEdit
Source§impl Serialize for SettingsEdit
impl Serialize for SettingsEdit
impl StructuralPartialEq for SettingsEdit
Auto Trait Implementations§
impl Freeze for SettingsEdit
impl RefUnwindSafe for SettingsEdit
impl Send for SettingsEdit
impl Sync for SettingsEdit
impl Unpin for SettingsEdit
impl UnsafeUnpin for SettingsEdit
impl UnwindSafe for SettingsEdit
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