pub enum DataToSinkEvent {
Create {
governance_id: Option<String>,
subject_id: String,
owner: String,
schema_id: SchemaType,
namespace: String,
sn: u64,
gov_version: u64,
state: Value,
},
FactFull {
governance_id: Option<String>,
subject_id: String,
schema_id: SchemaType,
viewpoints: Vec<String>,
issuer: String,
owner: String,
payload: Option<Value>,
patch: Option<Value>,
success: bool,
error: Option<String>,
sn: u64,
gov_version: u64,
},
FactOpaque {
governance_id: Option<String>,
subject_id: String,
schema_id: SchemaType,
viewpoints: Vec<String>,
owner: String,
success: bool,
sn: u64,
gov_version: u64,
},
Transfer {
governance_id: Option<String>,
subject_id: String,
schema_id: SchemaType,
owner: String,
new_owner: String,
success: bool,
error: Option<String>,
sn: u64,
gov_version: u64,
},
Confirm {
governance_id: Option<String>,
subject_id: String,
schema_id: SchemaType,
sn: u64,
patch: Option<Value>,
success: bool,
error: Option<String>,
gov_version: u64,
name_old_owner: Option<String>,
},
Reject {
governance_id: Option<String>,
subject_id: String,
schema_id: SchemaType,
sn: u64,
gov_version: u64,
},
Eol {
governance_id: Option<String>,
subject_id: String,
schema_id: SchemaType,
sn: u64,
gov_version: u64,
},
}Expand description
Flattened ledger event stored or emitted by sink integrations.
Variants§
Create
Fields
§
schema_id: SchemaTypeFactFull
Fields
§
schema_id: SchemaTypeFactOpaque
Fields
§
schema_id: SchemaTypeTransfer
Fields
§
schema_id: SchemaTypeConfirm
Fields
§
schema_id: SchemaTypeReject
Fields
§
schema_id: SchemaTypeEol
Implementations§
Source§impl DataToSinkEvent
impl DataToSinkEvent
Sourcepub fn get_subject_schema(&self) -> (String, String)
pub fn get_subject_schema(&self) -> (String, String)
Returns (subject_id, schema_id) for the event.
Trait Implementations§
Source§impl Clone for DataToSinkEvent
impl Clone for DataToSinkEvent
Source§fn clone(&self) -> DataToSinkEvent
fn clone(&self) -> DataToSinkEvent
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 DataToSinkEvent
impl Debug for DataToSinkEvent
Source§impl<'de> Deserialize<'de> for DataToSinkEvent
impl<'de> Deserialize<'de> for DataToSinkEvent
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 DataToSinkEvent
impl RefUnwindSafe for DataToSinkEvent
impl Send for DataToSinkEvent
impl Sync for DataToSinkEvent
impl Unpin for DataToSinkEvent
impl UnsafeUnpin for DataToSinkEvent
impl UnwindSafe for DataToSinkEvent
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