pub struct Props {
pub provider: String,
pub site_key: String,
pub script: String,
pub field: String,
pub action: Option<String>,
}Expand description
What the React, Vue and Svelte components need to draw the widget, for a front end that is not
MiniJinja. Pass it to the page (an Inertia prop, for example) and spread it on the component:
the same values the laracaptcha_widget() function works out for itself.
It serializes with the keys the components expect: provider, siteKey, script, field
and action.
Fields§
§provider: StringThe driver name, such as turnstile.
site_key: StringThe public site key.
script: StringThe provider’s script, with the site key reCAPTCHA v3 needs in its address. Empty for the fake, which is how the widgets know to draw nothing.
field: StringThe name of the field carrying the token.
action: Option<String>The action to tag the token with.
Trait Implementations§
impl Eq for Props
impl StructuralPartialEq for Props
Auto Trait Implementations§
impl Forget for Props
impl Freeze for Props
impl Move for Props
impl RefUnwindSafe for Props
impl Send for Propswhere
RawVecInner: Send,
impl Sync for Propswhere
RawVecInner: Sync,
impl Unpin for Props
impl UnsafeUnpin for Props
impl UnwindSafe for Propswhere
RawVecInner: UnwindSafe,
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> 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§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.impl<T> ErasedDestructor for Twhere
T: 'static,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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> IntoViewData for Twhere
T: Serialize,
impl<T> IntoViewData for Twhere
T: Serialize,
Source§fn into_view_data(self) -> ViewData
fn into_view_data(self) -> ViewData
Converts the value into view data.