pub struct ResponseId(/* private fields */);Expand description
The identity of a Response.
Implementations§
Source§impl ResponseId
impl ResponseId
Sourcepub fn content_id(&self) -> &ContentId
pub fn content_id(&self) -> &ContentId
The underlying content id.
Sourcepub fn parse(text: &str) -> Result<Self, ProtocolError>
pub fn parse(text: &str) -> Result<Self, ProtocolError>
Parse an id from its canonical rendering.
§Errors
ProtocolError::NonCanonicalId when text parses but is not
byte-identical to the id’s own rendering — an alternate
spelling would let two strings name one record.
Trait Implementations§
Source§impl Clone for ResponseId
impl Clone for ResponseId
impl Copy for ResponseId
Source§impl Debug for ResponseId
impl Debug for ResponseId
Source§impl<'de> Deserialize<'de> for ResponseId
impl<'de> Deserialize<'de> for ResponseId
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 ResponseId
impl Display for ResponseId
impl Eq for ResponseId
Source§impl Hash for ResponseId
impl Hash for ResponseId
Source§impl Ord for ResponseId
impl Ord for ResponseId
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 ResponseId
impl PartialEq for ResponseId
Source§impl PartialOrd for ResponseId
impl PartialOrd for ResponseId
Source§impl Serialize for ResponseId
impl Serialize for ResponseId
impl StructuralPartialEq for ResponseId
Auto Trait Implementations§
impl Freeze for ResponseId
impl RefUnwindSafe for ResponseId
impl Send for ResponseId
impl Sync for ResponseId
impl Unpin for ResponseId
impl UnsafeUnpin for ResponseId
impl UnwindSafe for ResponseId
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