pub struct Change {
pub reference: u64,
pub kind: ChangeKind,
pub data_set: String,
pub key: Vec<(String, Value)>,
pub old: Vec<(String, Value)>,
pub new: Vec<(String, Value)>,
pub master: Option<MasterLink>,
}Expand description
Uma alteração enviada ao backend.
Fields§
§reference: u64Identifica o registro na resposta. Único no processo (não só no dataset): o resultado de um detalhe, vindo no delta do mestre, acha sozinho o dataset dele.
kind: ChangeKind§data_set: StringO nome do dataset do registro (o próprio, ou um detalhe no delta do mestre).
key: Vec<(String, Value)>Campos-chave com os valores originais (update e delete).
old: Vec<(String, Value)>Valores antigos: só os campos alterados (update) ou todos (delete).
new: Vec<(String, Value)>Valores novos: só os campos alterados (update) ou todos (insert).
master: Option<MasterLink>Detalhe ligado a um mestre também incluído agora: a chave do mestre ainda é a
provisória, e a gerada pelo banco vai para os campos de ligação (crate::Delta::accept).
Trait Implementations§
impl StructuralPartialEq for Change
Auto Trait Implementations§
impl Forget for Change
impl Freeze for Changewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<(String, Value)>: Freeze,
PhantomData<(String, String)>: Freeze,
impl Move for Change
impl RefUnwindSafe for Change
impl Send for Changewhere
RawVecInner: Send,
impl Sync for Changewhere
RawVecInner: Sync,
impl Unpin for Change
impl UnsafeUnpin for Changewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(String, Value)>: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
impl UnwindSafe for Changewhere
RawVecInner: UnwindSafe,
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