Struct ramp_api::locations::Locations [−][src]
pub struct Locations {
pub client: Client,
}
Fields
client: Client
Implementations
List locations.
This function performs a GET
to the /locations
endpoint.
Retrieves all locations for your business.
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.
List locations.
This function performs a GET
to the /locations
endpoint.
As opposed to get
, this function returns all the pages of the request at once.
Retrieves all locations for your business.
Create new location.
This function performs a POST
to the /locations
endpoint.
Creates a new location for the business.
Parameters:
authorization: &str
– The OAuth2 token header.
GET a location.
This function performs a GET
to the /locations/{id}
endpoint.
Retrieve a specific location.
Parameters:
authorization: &str
– The OAuth2 token header.
Auto Trait Implementations
impl !RefUnwindSafe for Locations
impl !UnwindSafe for Locations
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more