pub enum DataToSinkEvent {
Create {
governance_id: Option<String>,
subject_id: String,
owner: String,
schema_id: SchemaType,
namespace: String,
sn: u64,
},
Fact {
governance_id: Option<String>,
subject_id: String,
schema_id: SchemaType,
issuer: String,
owner: String,
payload: Value,
sn: u64,
},
Transfer {
governance_id: Option<String>,
subject_id: String,
schema_id: SchemaType,
owner: String,
new_owner: String,
sn: u64,
},
Confirm {
governance_id: Option<String>,
subject_id: String,
schema_id: SchemaType,
sn: u64,
},
Reject {
governance_id: Option<String>,
subject_id: String,
schema_id: SchemaType,
sn: u64,
},
Eol {
governance_id: Option<String>,
subject_id: String,
schema_id: SchemaType,
sn: u64,
},
}Variants§
Create
Fields
§
schema_id: SchemaTypeFact
Fields
§
schema_id: SchemaTypeTransfer
Fields
§
schema_id: SchemaTypeConfirm
Reject
Eol
Implementations§
Source§impl DataToSinkEvent
impl DataToSinkEvent
pub fn get_subject_schema(&self) -> (String, String)
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