pub struct FieldLink {
pub data_source: Option<ComponentId>,
pub data_field: String,
}Expand description
Ligação de um controle a um campo: data_source + data_field.
Fields§
§data_source: Option<ComponentId>§data_field: StringImplementations§
Source§impl FieldLink
impl FieldLink
Sourcepub fn data_set(&self, ui: &Ui) -> Option<ComponentId>
pub fn data_set(&self, ui: &Ui) -> Option<ComponentId>
O dataset por trás do DataSource (se ligado e habilitado).
Sourcepub fn concerns(&self, ui: &Ui, message: &DataMessage) -> bool
pub fn concerns(&self, ui: &Ui, message: &DataMessage) -> bool
A mensagem é do dataset deste controle e interessa a este campo?
pub fn field<'a>(&self, ui: &'a Ui) -> Option<&'a Field>
Sourcepub fn has_record(&self, ui: &Ui) -> bool
pub fn has_record(&self, ui: &Ui) -> bool
Há um registro para mostrar (dataset aberto e não vazio, ou em inclusão)?
pub fn value(&self, ui: &Ui) -> Value
pub fn display_text(&self, ui: &Ui) -> String
pub fn edit_text(&self, ui: &Ui) -> String
Sourcepub fn can_modify(&self, ui: &Ui) -> bool
pub fn can_modify(&self, ui: &Ui) -> bool
O usuário pode alterar este campo agora (direto ou com auto-edição)?
Sourcepub fn begin_edit(&self, ui: &mut Ui) -> DataResult
pub fn begin_edit(&self, ui: &mut Ui) -> DataResult
Coloca o dataset em edição se ainda não estiver (como o DataLink.Edit).
pub fn write_text(&self, ui: &mut Ui, text: &str) -> DataResult
pub fn write_value(&self, ui: &mut Ui, value: impl Into<Value>) -> DataResult
Trait Implementations§
impl StructuralPartialEq for FieldLink
Auto Trait Implementations§
impl Forget for FieldLink
impl Freeze for FieldLink
impl RefUnwindSafe for FieldLink
impl Send for FieldLink
impl Sync for FieldLink
impl Unpin for FieldLink
impl UnsafeUnpin for FieldLink
impl UnwindSafe for FieldLink
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