pub struct CardPrograms {
pub client: Client,
}
Fields§
§client: Client
Implementations§
Source§impl CardPrograms
impl CardPrograms
Sourcepub async fn get_page(
&self,
start: &str,
page_size: f64,
) -> Result<Response<Vec<CardProgram>>, ClientError>
pub async fn get_page( &self, start: &str, page_size: f64, ) -> Result<Response<Vec<CardProgram>>, ClientError>
List card programs.
This function performs a GET
to the /card-programs
endpoint.
Retrieve all card programs.
Parameters:
authorization: &str
– The OAuth2 token header.start: &str
– The ID of the last entity of the previous page, used for pagination to get the next page.page_size: f64
– The number of results to be returned in each page. The value must be between 2 and 10,000. If not specified, the default will be 1,000.
Sourcepub async fn get_all(&self) -> Result<Response<Vec<CardProgram>>, ClientError>
pub async fn get_all(&self) -> Result<Response<Vec<CardProgram>>, ClientError>
List card programs.
This function performs a GET
to the /card-programs
endpoint.
As opposed to get
, this function returns all the pages of the request at once.
Retrieve all card programs.
Sourcepub async fn post_resources(
&self,
body: &PostResourcesCardProgramRequest,
) -> Result<Response<CardProgram>, ClientError>
pub async fn post_resources( &self, body: &PostResourcesCardProgramRequest, ) -> Result<Response<CardProgram>, ClientError>
Create a card program.
This function performs a POST
to the /card-programs
endpoint.
Parameters:
authorization: &str
– The OAuth2 token header.
Sourcepub async fn get_program(
&self,
id: &str,
) -> Result<Response<CardProgram>, ClientError>
pub async fn get_program( &self, id: &str, ) -> Result<Response<CardProgram>, ClientError>
GET a card program.
This function performs a GET
to the /card-programs/{id}
endpoint.
Retrieve a single card program.
Parameters:
authorization: &str
– The OAuth2 token header.
Auto Trait Implementations§
impl Freeze for CardPrograms
impl !RefUnwindSafe for CardPrograms
impl Send for CardPrograms
impl Sync for CardPrograms
impl Unpin for CardPrograms
impl !UnwindSafe for CardPrograms
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