pub struct PioneerCodeInput(/* private fields */);Expand description
Redacted pioneer-code input accepted at public registration boundaries.
Implementations§
Source§impl PioneerCodeInput
impl PioneerCodeInput
Sourcepub fn try_new(value: impl Into<String>) -> Result<Self, PioneerCodeError>
pub fn try_new(value: impl Into<String>) -> Result<Self, PioneerCodeError>
Store a raw code candidate without validating its public grammar.
Sourcepub fn expose_secret(&self) -> &str
pub fn expose_secret(&self) -> &str
Expose the raw code only where it must be validated, hashed, or sent.
Trait Implementations§
Source§impl Clone for PioneerCodeInput
impl Clone for PioneerCodeInput
Source§fn clone(&self) -> PioneerCodeInput
fn clone(&self) -> PioneerCodeInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PioneerCodeInput
impl Debug for PioneerCodeInput
Source§impl<'de> Deserialize<'de> for PioneerCodeInput
impl<'de> Deserialize<'de> for PioneerCodeInput
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 the raw secret without exposing grammar-specific failures.
Source§impl JsonSchema for PioneerCodeInput
impl JsonSchema for PioneerCodeInput
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Keep the boundary-input schema inline as a plain string.
Source§fn schema_name() -> Cow<'static, str>
fn schema_name() -> Cow<'static, str>
Return the schema component name used by generated clients.
Source§fn json_schema(_: &mut SchemaGenerator) -> Schema
fn json_schema(_: &mut SchemaGenerator) -> Schema
Describe only the wire type for public registration inputs.
Auto Trait Implementations§
impl Freeze for PioneerCodeInput
impl RefUnwindSafe for PioneerCodeInput
impl Send for PioneerCodeInput
impl Sync for PioneerCodeInput
impl Unpin for PioneerCodeInput
impl UnsafeUnpin for PioneerCodeInput
impl UnwindSafe for PioneerCodeInput
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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