Struct aliri_braid_examples::validated::ScopeToken [−][src]
#[repr(transparent)]pub struct ScopeToken(_);
Expand description
A scope token as defined in RFC6749, Section 3.3
This type maintains an invariant that ensures that a value of this type cannot be constructed that contains invalid data.
The borrowed form of this type is generated by appending
Ref to the end of the owned form: ScopeTokenRef
.
Implementations
Constructs a new ScopeToken if it conforms to ScopeToken
Constructs a new ScopeToken without validation
Safety
Consumers of this function must ensure that values conform to ScopeToken
. Failure to maintain this invariant may lead to undefined behavior.
Converts this ScopeToken
into a Box
<
ScopeTokenRef
>
This will drop any excess capacity.
Unwraps the underlying String
value
Methods from Deref<Target = ScopeTokenRef>
Trait Implementations
Performs the conversion.
Immutably borrows from an owned value. Read more
type Target = ScopeTokenRef
type Target = ScopeTokenRef
The resulting type after dereferencing.
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for ScopeToken
impl Send for ScopeToken
impl Sync for ScopeToken
impl Unpin for ScopeToken
impl UnwindSafe for ScopeToken
Blanket Implementations
Mutably borrows from an owned value. Read more