Struct edge_schema::schema::StringWebcIdent
source · pub struct StringWebcIdent(pub WebcIdent);
Expand description
Wrapper around [WebcPackageIdentifierV1
].
The inner value is serialized and deserialized as a String
.
Tuple Fields§
§0: WebcIdent
Implementations§
source§impl StringWebcIdent
impl StringWebcIdent
pub fn parse(value: &str) -> Result<Self, WebcParseError>
Trait Implementations§
source§impl Clone for StringWebcIdent
impl Clone for StringWebcIdent
source§fn clone(&self) -> StringWebcIdent
fn clone(&self) -> StringWebcIdent
Returns a copy of the value. Read more
1.0.0 · 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 StringWebcIdent
impl Debug for StringWebcIdent
source§impl<'de> Deserialize<'de> for StringWebcIdent
impl<'de> Deserialize<'de> for StringWebcIdent
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 StringWebcIdent
impl Display for StringWebcIdent
source§impl From<StringWebcIdent> for WebcIdent
impl From<StringWebcIdent> for WebcIdent
source§fn from(x: StringWebcIdent) -> Self
fn from(x: StringWebcIdent) -> Self
Converts to this type from the input type.
source§impl From<WebcIdent> for StringWebcIdent
impl From<WebcIdent> for StringWebcIdent
source§impl FromStr for StringWebcIdent
impl FromStr for StringWebcIdent
source§impl JsonSchema for StringWebcIdent
impl JsonSchema for StringWebcIdent
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(_gen: &mut SchemaGenerator) -> Schema
fn json_schema(_gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl PartialEq for StringWebcIdent
impl PartialEq for StringWebcIdent
source§fn eq(&self, other: &StringWebcIdent) -> bool
fn eq(&self, other: &StringWebcIdent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StringWebcIdent
impl Serialize for StringWebcIdent
impl Eq for StringWebcIdent
impl StructuralPartialEq for StringWebcIdent
Auto Trait Implementations§
impl Freeze for StringWebcIdent
impl RefUnwindSafe for StringWebcIdent
impl Send for StringWebcIdent
impl Sync for StringWebcIdent
impl Unpin for StringWebcIdent
impl UnwindSafe for StringWebcIdent
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<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.