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>

Provides access to the underlying value as a string slice.

Trait Implementations

Performs the conversion.

Performs the conversion.

Immutably borrows from an owned value. Read more

Immutably borrows from an owned value. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

Deserialize this value from the given Serde deserializer. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The error produced when the string is invalid

Validates a string according to a predetermined set of rules

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.