pub struct UsersOptions {
pub db_url: Secret,
pub batch_size: usize,
pub oidc_providers: BTreeSet<String>,
}Expand description
What read_users needs.
Fields§
§db_url: SecretThe source database URL, ideally for the read-only role.
batch_size: usizeRows per keyset page; the pages are one snapshot regardless.
oidc_providers: BTreeSet<String>The Supabase OAuth providers the caller can carry over: an identity of any other provider is reported unmapped.
Implementations§
Source§impl UsersOptions
impl UsersOptions
Sourcepub fn new(db_url: Secret) -> Self
pub fn new(db_url: Secret) -> Self
Options that read DEFAULT_BATCH_SIZE a page and map no provider.
Auto Trait Implementations§
impl Freeze for UsersOptions
impl RefUnwindSafe for UsersOptions
impl Send for UsersOptions
impl Sync for UsersOptions
impl Unpin for UsersOptions
impl UnsafeUnpin for UsersOptions
impl UnwindSafe for UsersOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more