pub struct OAuthTemplate { /* private fields */ }Expand description
Branding and content renderer for the browser OAuth callback.
Implementations§
Source§impl OAuthTemplate
impl OAuthTemplate
Sourcepub fn new(image_src: Option<String>) -> OAuthTemplate
pub fn new(image_src: Option<String>) -> OAuthTemplate
Create a callback renderer with an optional logo URL or data URI.
Sourcepub fn render(&self, context: OAuthTemplateContext<'_>) -> String
pub fn render(&self, context: OAuthTemplateContext<'_>) -> String
Build the complete callback HTML with escaped dynamic values.
Trait Implementations§
Source§impl Clone for OAuthTemplate
impl Clone for OAuthTemplate
Source§fn clone(&self) -> OAuthTemplate
fn clone(&self) -> OAuthTemplate
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 OAuthTemplate
impl Debug for OAuthTemplate
Source§impl Default for OAuthTemplate
impl Default for OAuthTemplate
Source§fn default() -> OAuthTemplate
fn default() -> OAuthTemplate
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OAuthTemplate
impl RefUnwindSafe for OAuthTemplate
impl Send for OAuthTemplate
impl Sync for OAuthTemplate
impl Unpin for OAuthTemplate
impl UnsafeUnpin for OAuthTemplate
impl UnwindSafe for OAuthTemplate
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