pub struct OriginToken(pub String);Expand description
Server-issued token that a UI surface attaches to a turn to name the exact record it was opened from (spec §12.4).
Tuple Fields§
§0: StringImplementations§
Source§impl OriginToken
impl OriginToken
Sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Consumes the identifier and returns the owned label.
Trait Implementations§
Source§impl AsRef<str> for OriginToken
impl AsRef<str> for OriginToken
Source§impl Borrow<str> for OriginToken
impl Borrow<str> for OriginToken
Source§impl Clone for OriginToken
impl Clone for OriginToken
Source§impl Debug for OriginToken
impl Debug for OriginToken
Source§impl<'de> Deserialize<'de> for OriginToken
impl<'de> Deserialize<'de> for OriginToken
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 this value from the given Serde deserializer. Read more
Source§impl Display for OriginToken
impl Display for OriginToken
impl Eq for OriginToken
Source§impl From<&str> for OriginToken
impl From<&str> for OriginToken
Source§impl From<OriginToken> for String
impl From<OriginToken> for String
Source§fn from(value: OriginToken) -> Self
fn from(value: OriginToken) -> Self
Converts to this type from the input type.
Source§impl From<String> for OriginToken
impl From<String> for OriginToken
Source§impl Hash for OriginToken
impl Hash for OriginToken
Source§impl JsonSchema for OriginToken
impl JsonSchema for OriginToken
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Ord for OriginToken
impl Ord for OriginToken
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for OriginToken
impl PartialEq for OriginToken
Source§impl PartialOrd for OriginToken
impl PartialOrd for OriginToken
Source§impl Serialize for OriginToken
impl Serialize for OriginToken
impl StructuralPartialEq for OriginToken
Auto Trait Implementations§
impl Freeze for OriginToken
impl RefUnwindSafe for OriginToken
impl Send for OriginToken
impl Sync for OriginToken
impl Unpin for OriginToken
impl UnsafeUnpin for OriginToken
impl UnwindSafe for OriginToken
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.