pub struct CreateBorrowPositionWithEndUserAccount<'a> { /* private fields */ }Expand description
Builder for [Client::create_borrow_position_with_end_user_account]
[`Client::create_borrow_position_with_end_user_account`]: super::Client::create_borrow_position_with_end_user_accountImplementations§
Source§impl<'a> CreateBorrowPositionWithEndUserAccount<'a>
impl<'a> CreateBorrowPositionWithEndUserAccount<'a>
pub fn new(client: &'a Client) -> Self
pub fn user_id<V>(self, value: V) -> Self
pub fn address<V>(self, value: V) -> Self
pub fn project_id<V>(self, value: V) -> Self
pub fn x_wallet_auth<V>(self, value: V) -> Self
pub fn body<V>(self, value: V) -> Selfwhere
V: TryInto<CreateBorrowPositionRequest>,
<V as TryInto<CreateBorrowPositionRequest>>::Error: Display,
pub fn body_map<F>(self, f: F) -> Self
Sourcepub async fn send(self) -> Result<ResponseValue<EvmUserOperation>, Error<Error>>
pub async fn send(self) -> Result<ResponseValue<EvmUserOperation>, Error<Error>>
Sends a POST request to /v2/embedded-wallet-api/end-users/{userId}/evm/smart-accounts/{address}/borrow-positions
Trait Implementations§
Source§impl<'a> Clone for CreateBorrowPositionWithEndUserAccount<'a>
impl<'a> Clone for CreateBorrowPositionWithEndUserAccount<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for CreateBorrowPositionWithEndUserAccount<'a>
impl<'a> !UnwindSafe for CreateBorrowPositionWithEndUserAccount<'a>
impl<'a> Freeze for CreateBorrowPositionWithEndUserAccount<'a>
impl<'a> Send for CreateBorrowPositionWithEndUserAccount<'a>
impl<'a> Sync for CreateBorrowPositionWithEndUserAccount<'a>
impl<'a> Unpin for CreateBorrowPositionWithEndUserAccount<'a>
impl<'a> UnsafeUnpin for CreateBorrowPositionWithEndUserAccount<'a>
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