pub struct CreateRefInternalParams<'a> {
pub id_tag: &'a str,
pub typ: &'a str,
pub description: Option<&'a str>,
pub expires_at: Option<Timestamp>,
pub path_prefix: &'a str,
pub resource_id: Option<&'a str>,
pub count: Option<u32>,
}Expand description
Parameters for creating a ref internally
Fields§
§id_tag: &'a strThe id_tag for constructing the URL
typ: &'a strType of reference (e.g., “welcome”, “email-verify”)
description: Option<&'a str>Optional human-readable description
expires_at: Option<Timestamp>Optional expiration timestamp
path_prefix: &'a strURL path prefix (e.g., “/onboarding/welcome”)
resource_id: Option<&'a str>Optional resource identifier to store with the ref
count: Option<u32>Number of uses allowed (default: 1)
Auto Trait Implementations§
impl<'a> Freeze for CreateRefInternalParams<'a>
impl<'a> RefUnwindSafe for CreateRefInternalParams<'a>
impl<'a> Send for CreateRefInternalParams<'a>
impl<'a> Sync for CreateRefInternalParams<'a>
impl<'a> Unpin for CreateRefInternalParams<'a>
impl<'a> UnsafeUnpin for CreateRefInternalParams<'a>
impl<'a> UnwindSafe for CreateRefInternalParams<'a>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> 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