pub struct ChangedRecord { /* private fields */ }Expand description
A record a PanelChange names.
Implementations§
Source§impl ChangedRecord
impl ChangedRecord
Sourcepub fn url(&self) -> Option<&str>
pub fn url(&self) -> Option<&str>
The record’s detail page, as url::record spells it; None when
the resource serves none.
Sourcepub fn fields(&self) -> &[ChangedField]
pub fn fields(&self) -> &[ChangedField]
The fields the write changed on this record, each with its value before and after it.
They are the fields the model’s ModelColumns::table lists, each spelled as that column
spells it in an export, in the request’s locale, then its foreign keys and
TenantId fields, which the table leaves out, spelled as the database
stores them: a field marked #[columns(skip)], such as a password hash, never appears. A
create names each field it filled, an update’s after record each field whose spelling
changed, and a delete’s or a force delete’s records each field they held. The other
records name none: a restore, an action, an attach and a detach write what the model’s
columns do not say, and an update’s before record leaves the change to its after.
Trait Implementations§
Source§impl Clone for ChangedRecord
impl Clone for ChangedRecord
Source§impl Debug for ChangedRecord
impl Debug for ChangedRecord
impl Eq for ChangedRecord
Source§impl PartialEq for ChangedRecord
impl PartialEq for ChangedRecord
impl StructuralPartialEq for ChangedRecord
Auto Trait Implementations§
impl Forget for ChangedRecord
impl Freeze for ChangedRecord
impl RefUnwindSafe for ChangedRecord
impl Send for ChangedRecord
impl Sync for ChangedRecord
impl Unpin for ChangedRecord
impl UnsafeUnpin for ChangedRecord
impl UnwindSafe for ChangedRecord
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
key and return true if they are equal.