pub struct CommitData {
pub collection: String,
pub rkey: String,
pub operation: String,
pub record: Option<Value>,
pub cid: Option<String>,
pub rev: Option<String>,
}Expand description
Data from a commit event.
Fields§
§collection: StringThe NSID collection (e.g. "app.bsky.feed.post").
rkey: StringThe record key.
operation: StringThe operation: "create", "update", or "delete".
record: Option<Value>The record payload (present for create/update, absent for delete).
cid: Option<String>The CID of the record.
rev: Option<String>Revision string.
Trait Implementations§
Source§impl Clone for CommitData
impl Clone for CommitData
Source§fn clone(&self) -> CommitData
fn clone(&self) -> CommitData
Returns a duplicate of the value. Read more
1.0.0 · 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 CommitData
impl Debug for CommitData
Source§impl<'de> Deserialize<'de> for CommitData
impl<'de> Deserialize<'de> for CommitData
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
Auto Trait Implementations§
impl Freeze for CommitData
impl RefUnwindSafe for CommitData
impl Send for CommitData
impl Sync for CommitData
impl Unpin for CommitData
impl UnsafeUnpin for CommitData
impl UnwindSafe for CommitData
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