pub struct AgreementsClient { /* private fields */ }Expand description
Client for agreements operations.
Implementations§
Source§impl AgreementsClient
impl AgreementsClient
pub fn new(client: Client) -> Self
Sourcepub async fn get_latest_unaccepted_agreement(
&self,
query: Option<GetLatestUnacceptedAgreementQuery>,
) -> Result<GetLatestUnacceptedAgreementResponse, Error>
pub async fn get_latest_unaccepted_agreement( &self, query: Option<GetLatestUnacceptedAgreementQuery>, ) -> Result<GetLatestUnacceptedAgreementResponse, Error>
Get the latest unaccepted agreement for a specific agreement type
Sourcepub async fn record_agreement_acceptance(
&self,
agreement_id: String,
) -> Result<RecordAgreementAcceptanceResponse, Error>
pub async fn record_agreement_acceptance( &self, agreement_id: String, ) -> Result<RecordAgreementAcceptanceResponse, Error>
Record the acceptance of a specific agreement by its ID
Trait Implementations§
Source§impl Clone for AgreementsClient
impl Clone for AgreementsClient
Source§fn clone(&self) -> AgreementsClient
fn clone(&self) -> AgreementsClient
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for AgreementsClient
impl !UnwindSafe for AgreementsClient
impl Freeze for AgreementsClient
impl Send for AgreementsClient
impl Sync for AgreementsClient
impl Unpin for AgreementsClient
impl UnsafeUnpin for AgreementsClient
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