fn new(previous_tkey: &Option<TransactionKey>, uuid: Uuid) -> Self {
        let (revision_counter, previous_uuid) = match previous_tkey {
            Some(tkey) => (tkey.revision_counter + 1, tkey.uuid.to_string()),
            None => (0, String::new()),
        };

        Self {
            proto: proto::Transaction {
                actions: vec![],
                version: TRANSACTION_VERSION,
                uuid: uuid.to_string(),
                revision_counter,
                previous_uuid,
                start_timestamp: Some(Utc::now().into()),
                encoding: proto::transaction::Encoding::Delta.into(),
            },
        }
    }
/// Private API to create new transaction, users should always use [`PreservedCatalog::open_transaction`].
Private API to create new transaction, users should always use [`PreservedCatalog::open_transaction`].
Private API to create new transaction users should always use [ ` PreservedCatalog :: open_transaction ` ] .
fn new(previous_tkey: &Option<TransactionKey>, uuid: Uuid) -> Self {
        let (revision_counter, previous_uuid) = match previous_tkey {
            Some(tkey) => (tkey.revision_counter + 1, tkey.uuid.to_string()),
            None => (0, String::new()),
        };
        Self {
            proto: proto::Transaction {
                actions: vec![],
                version: TRANSACTION_VERSION,
                uuid: uuid.to_string(),
                revision_counter,
                previous_uuid,
                start_timestamp: Some(Utc::now().into()),
                encoding: proto::transaction::Encoding::Delta.into(),
            },
        }
    }
fn new ( previous_tkey : & Option < TransactionKey > , uuid : Uuid ) -> Self { let ( revision_counter , previous_uuid ) = match previous_tkey { Some ( tkey ) => ( tkey . revision_counter + 1 , tkey . uuid . to_string ( ) ) , None => ( 0 , String :: new ( ) ) , } ; Self { proto : proto :: Transaction { actions : vec ! [ ] , version : TRANSACTION_VERSION , uuid : uuid . to_string ( ) , revision_counter , previous_uuid , start_timestamp : Some ( Utc :: now ( ) . into ( ) ) , encoding : proto :: transaction :: Encoding :: Delta . into ( ) , } , } }
Private API to create new transaction, users should always use [`PreservedCatalog::open_transaction`].
Private API to create new transaction users should always use [ ` PreservedCatalog :: open_transaction ` ] .
previous_tkey
&Option<TransactionKey>
uuid
Uuid
previous_tkey
&Option<TransactionKey>
uuid
Uuid