fizzy_sdk/generated/services/
pins.rs1use crate::client::Scope;
4use crate::error::Error;
5use crate::generated::routes;
6use crate::generated::types::*;
7
8pub struct PinsService<'a> {
10 scope: Scope<'a>,
11}
12
13impl<'a> PinsService<'a> {
14 pub(crate) fn new(scope: Scope<'a>) -> Self {
15 Self { scope }
16 }
17
18 pub fn scope(&self) -> &Scope<'a> {
20 &self.scope
21 }
22
23 pub async fn list(&self) -> Result<Vec<Card>, Error> {
27 let operation = self.scope.operation(&routes::LIST_PINS, &[])?;
28 self.scope.client().send(operation).await
29 }
30}