#[non_exhaustive]pub struct JmapUrlTemplate(/* private fields */);Expand description
An RFC 6570 Level-1 URI template — requires variable substitution before use as a request URL.
Typed counterpart to JmapUrl. The template carries placeholders
like {accountId} or {blobId} that must be expanded via
expand_url_template before the result
can be sent to an HTTP client. Passing the unexpanded template
verbatim would produce a request URL containing literal {...}
braces, which reqwest percent-encodes to %7B...%7D and the server
rejects.
Construct via JmapUrlTemplate::new. See JmapUrl for the
rationale behind not implementing Deref<Target = str>.
Implementations§
Trait Implementations§
Source§impl AsRef<str> for JmapUrlTemplate
impl AsRef<str> for JmapUrlTemplate
Source§impl Clone for JmapUrlTemplate
impl Clone for JmapUrlTemplate
Source§fn clone(&self) -> JmapUrlTemplate
fn clone(&self) -> JmapUrlTemplate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 JmapUrlTemplate
impl Debug for JmapUrlTemplate
Source§impl<'de> Deserialize<'de> for JmapUrlTemplate
impl<'de> Deserialize<'de> for JmapUrlTemplate
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 JmapUrlTemplate
impl Display for JmapUrlTemplate
impl Eq for JmapUrlTemplate
Source§impl Hash for JmapUrlTemplate
impl Hash for JmapUrlTemplate
Source§impl PartialEq for JmapUrlTemplate
impl PartialEq for JmapUrlTemplate
Source§fn eq(&self, other: &JmapUrlTemplate) -> bool
fn eq(&self, other: &JmapUrlTemplate) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialEq<&str> for JmapUrlTemplate
impl PartialEq<&str> for JmapUrlTemplate
Source§impl PartialEq<JmapUrlTemplate> for &str
impl PartialEq<JmapUrlTemplate> for &str
Source§fn eq(&self, other: &JmapUrlTemplate) -> bool
fn eq(&self, other: &JmapUrlTemplate) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialEq<JmapUrlTemplate> for str
impl PartialEq<JmapUrlTemplate> for str
Source§fn eq(&self, other: &JmapUrlTemplate) -> bool
fn eq(&self, other: &JmapUrlTemplate) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialEq<str> for JmapUrlTemplate
impl PartialEq<str> for JmapUrlTemplate
Source§impl Serialize for JmapUrlTemplate
impl Serialize for JmapUrlTemplate
impl StructuralPartialEq for JmapUrlTemplate
Auto Trait Implementations§
impl Freeze for JmapUrlTemplate
impl RefUnwindSafe for JmapUrlTemplate
impl Send for JmapUrlTemplate
impl Sync for JmapUrlTemplate
impl Unpin for JmapUrlTemplate
impl UnsafeUnpin for JmapUrlTemplate
impl UnwindSafe for JmapUrlTemplate
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.