@@ -641,20 +641,11 @@ pub extern "C" fn c_collection_property_decryptor(
641
641
642
642
#[ derive( Default ) ]
643
643
pub struct ReplicationConfigurationContext {
644
- #[ deprecated( note = "please use `collection.push_filter` on default collection instead" ) ]
645
- pub push_filter : Option < ReplicationFilter > ,
646
- #[ deprecated( note = "please use `collection.pull_filter` on default collection instead" ) ]
647
- pub pull_filter : Option < ReplicationFilter > ,
648
- #[ deprecated( note = "please use `collection.conflict_resolver` on default collection instead" ) ]
649
- pub conflict_resolver : Option < ConflictResolver > ,
650
- #[ deprecated(
651
- note = "please use `collection_property_encryptor` on default collection instead"
652
- ) ]
653
- pub default_collection_property_encryptor : Option < DefaultCollectionPropertyEncryptor > ,
654
- #[ deprecated(
655
- note = "please use `collection_property_decryptor` on default collection instead"
656
- ) ]
657
- pub default_collection_property_decryptor : Option < DefaultCollectionPropertyDecryptor > ,
644
+ pub push_filter : Option < ReplicationFilter > , // TODO: deprecated
645
+ pub pull_filter : Option < ReplicationFilter > , // TODO: deprecated
646
+ pub conflict_resolver : Option < ConflictResolver > , // TODO: deprecated
647
+ pub default_collection_property_encryptor : Option < DefaultCollectionPropertyEncryptor > , // TODO: deprecated
648
+ pub default_collection_property_decryptor : Option < DefaultCollectionPropertyDecryptor > , // TODO: deprecated
658
649
pub collection_property_encryptor : Option < CollectionPropertyEncryptor > ,
659
650
pub collection_property_decryptor : Option < CollectionPropertyDecryptor > ,
660
651
}
@@ -692,11 +683,11 @@ impl ReplicationCollection {
692
683
693
684
/** The configuration of a replicator. */
694
685
pub struct ReplicatorConfiguration {
695
- # [ deprecated ( note = "use collections instead" ) ]
686
+ // TODO: deprecated
696
687
pub database : Option < Database > , // The database to replicate. When setting the database, ONLY the default collection will be used for replication.
697
- pub endpoint : Endpoint , // The address of the other database to replicate with
688
+ pub endpoint : Endpoint , // The address of the other database to replicate with
698
689
pub replicator_type : ReplicatorType , // Push, pull or both
699
- pub continuous : bool , // Continuous replication?
690
+ pub continuous : bool , // Continuous replication?
700
691
//-- Auto Purge:
701
692
/**
702
693
If auto purge is active, then the library will automatically purge any documents that the replicating
@@ -721,9 +712,9 @@ pub struct ReplicatorConfiguration {
721
712
pub pinned_server_certificate : Option < Vec < u8 > > , // An X.509 cert to "pin" TLS connections to (PEM or DER)
722
713
pub trusted_root_certificates : Option < Vec < u8 > > , // Set of anchor certs (PEM format)
723
714
//-- Filtering:
724
- # [ deprecated ( note = "please use `collection.channels` on default collection instead" ) ]
715
+ // TODO: deprecated
725
716
pub channels : MutableArray , // Optional set of channels to pull from
726
- # [ deprecated ( note = "please use `collection.document_ids` on default collection instead" ) ]
717
+ // TODO: deprecated
727
718
pub document_ids : MutableArray , // Optional set of document IDs to replicate
728
719
pub collections : Option < Vec < ReplicationCollection > > , // The collections to replicate with the target's endpoint (Required if the database is not set).
729
720
//-- Advanced HTTP settings:
0 commit comments