pub struct StartSync<'a> {
pub collections: Option<Vec<Nsid<'a>>>,
pub external_collections: Option<Vec<Nsid<'a>>>,
pub limit_per_repo: Option<i64>,
pub repos: Option<Vec<Did<'a>>>,
pub skip_validation: Option<bool>,
pub slice: CowStr<'a>,
pub extra_data: Option<BTreeMap<SmolStr, Data<'a>>>,
}Fields§
§collections: Option<Vec<Nsid<'a>>>List of collection NSIDs to sync (primary collections matching slice domain)
external_collections: Option<Vec<Nsid<'a>>>List of external collection NSIDs to sync (collections outside slice domain)
limit_per_repo: Option<i64>Maximum number of records to sync per repository
repos: Option<Vec<Did<'a>>>List of specific repository DIDs to sync from
skip_validation: Option<bool>Skip lexicon validation during sync Defaults to false.
slice: CowStr<'a>AT-URI of the slice to sync data into
extra_data: Option<BTreeMap<SmolStr, Data<'a>>>Trait Implementations§
Source§impl<'de: 'a, 'a> Deserialize<'de> for StartSync<'a>
impl<'de: 'a, 'a> Deserialize<'de> for StartSync<'a>
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
Source§impl<'a> IntoStatic for StartSync<'a>
impl<'a> IntoStatic for StartSync<'a>
Source§impl<'a> XrpcRequest for StartSync<'a>
impl<'a> XrpcRequest for StartSync<'a>
Source§const METHOD: XrpcMethod
const METHOD: XrpcMethod
XRPC method (query/GET or procedure/POST)
Source§type Response = StartSyncResponse
type Response = StartSyncResponse
Response type returned from the XRPC call (marker struct)
Source§fn encode_body(&self) -> Result<Vec<u8>, EncodeError>
fn encode_body(&self) -> Result<Vec<u8>, EncodeError>
Encode the request body for procedures. Read more
Source§fn decode_body<'de>(body: &'de [u8]) -> Result<Box<Self>, DecodeError>where
Self: Deserialize<'de>,
fn decode_body<'de>(body: &'de [u8]) -> Result<Box<Self>, DecodeError>where
Self: Deserialize<'de>,
Decode the request body for procedures. Read more
impl<'a> Eq for StartSync<'a>
impl<'a> StructuralPartialEq for StartSync<'a>
Auto Trait Implementations§
impl<'a> Freeze for StartSync<'a>
impl<'a> RefUnwindSafe for StartSync<'a>
impl<'a> Send for StartSync<'a>
impl<'a> Sync for StartSync<'a>
impl<'a> Unpin for StartSync<'a>
impl<'a> UnsafeUnpin for StartSync<'a>
impl<'a> UnwindSafe for StartSync<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.