pub struct Base64JSON<T>(pub T);Expand description
Wrapper type to indicate that the inner type should be serialized as JSON and then Base64 URL-safe encoded and serialized as a string.
Tuple Fields§
§0: TTrait Implementations§
Source§impl<T> AcmeFormat for Base64JSON<T>where
T: Serialize,
impl<T> AcmeFormat for Base64JSON<T>where
T: Serialize,
Source§fn fmt<W: Write>(&self, f: &mut IndentWriter<'_, W>) -> Result
fn fmt<W: Write>(&self, f: &mut IndentWriter<'_, W>) -> Result
Write this format at the current indentation.
Source§fn fmt_indented<W: Write>(&self, f: &mut IndentWriter<'_, W>) -> Result
fn fmt_indented<W: Write>(&self, f: &mut IndentWriter<'_, W>) -> Result
Write this format at an indented level one greater than the current level. Read more
Source§fn fmt_indented_skip_first<W: Write>(
&self,
f: &mut IndentWriter<'_, W>,
) -> Result
fn fmt_indented_skip_first<W: Write>( &self, f: &mut IndentWriter<'_, W>, ) -> Result
Write this format at an indented level one greater than the current level,
but don’t indent the first line.
Source§fn formatted(&self) -> AcmeFormatted<'_, Self>
fn formatted(&self) -> AcmeFormatted<'_, Self>
Return a formatting proxy which will use the ACME format when used with
std::fmt::Display.Source§impl<T: Clone> Clone for Base64JSON<T>
impl<T: Clone> Clone for Base64JSON<T>
Source§fn clone(&self) -> Base64JSON<T>
fn clone(&self) -> Base64JSON<T>
Returns a duplicate 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<T: Debug> Debug for Base64JSON<T>
impl<T: Debug> Debug for Base64JSON<T>
Source§impl<'de, T> Deserialize<'de> for Base64JSON<T>where
T: DeserializeOwned,
impl<'de, T> Deserialize<'de> for Base64JSON<T>where
T: DeserializeOwned,
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<T> From<T> for Base64JSON<T>
impl<T> From<T> for Base64JSON<T>
Auto Trait Implementations§
impl<T> Freeze for Base64JSON<T>where
T: Freeze,
impl<T> RefUnwindSafe for Base64JSON<T>where
T: RefUnwindSafe,
impl<T> Send for Base64JSON<T>where
T: Send,
impl<T> Sync for Base64JSON<T>where
T: Sync,
impl<T> Unpin for Base64JSON<T>where
T: Unpin,
impl<T> UnwindSafe for Base64JSON<T>where
T: UnwindSafe,
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