pub struct CreateSessionRequest {
pub success_url: String,
pub cancel_url: Option<String>,
pub brand_name: Option<String>,
pub brand_color: Option<String>,
pub metadata: Option<HashMap<String, Value>>,
}Fields§
§success_url: String§cancel_url: Option<String>§brand_name: Option<String>§brand_color: Option<String>§metadata: Option<HashMap<String, Value>>Implementations§
Source§impl CreateSessionRequest
impl CreateSessionRequest
pub fn new(success_url: impl Into<String>) -> Self
pub fn cancel_url(self, url: impl Into<String>) -> Self
pub fn brand_name(self, name: impl Into<String>) -> Self
pub fn brand_color(self, color: impl Into<String>) -> Self
pub fn metadata(self, metadata: HashMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for CreateSessionRequest
impl Clone for CreateSessionRequest
Source§fn clone(&self) -> CreateSessionRequest
fn clone(&self) -> CreateSessionRequest
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 Debug for CreateSessionRequest
impl Debug for CreateSessionRequest
Auto Trait Implementations§
impl Freeze for CreateSessionRequest
impl RefUnwindSafe for CreateSessionRequest
impl Send for CreateSessionRequest
impl Sync for CreateSessionRequest
impl Unpin for CreateSessionRequest
impl UnsafeUnpin for CreateSessionRequest
impl UnwindSafe for CreateSessionRequest
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