pub struct Sites<'a> { /* private fields */ }Implementations§
Source§impl<'a> Sites<'a>
impl<'a> Sites<'a>
Sourcepub async fn list(self) -> Result<SquareResponse, SquareError>
pub async fn list(self) -> Result<SquareResponse, SquareError>
Lists the Square Online sites that belong to a seller. Open in API Reference
§Example: List all of the Square Online sites belonging to you
use square_ox::{
response::{SquareResponse, ResponseError},
client::SquareClient
};
async {
let sites = SquareClient::new("some_token")
.production()
.sites()
.list()
.await;
};Auto Trait Implementations§
impl<'a> Freeze for Sites<'a>
impl<'a> RefUnwindSafe for Sites<'a>
impl<'a> Send for Sites<'a>
impl<'a> Sync for Sites<'a>
impl<'a> Unpin for Sites<'a>
impl<'a> UnwindSafe for Sites<'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