pub struct WebsiteDataResource<'a> { /* private fields */ }Expand description
client.website().data()
Implementations§
Source§impl<'a> WebsiteDataResource<'a>
impl<'a> WebsiteDataResource<'a>
Sourcepub fn create(
&self,
body: &WebsiteDataCreate,
) -> Result<WebsiteDataWithoutInclude>
pub fn create( &self, body: &WebsiteDataCreate, ) -> Result<WebsiteDataWithoutInclude>
POST /website/data
§Example
let body = models::WebsiteDataCreate {
domain_id: 42,
domain_type: "calendar".into(),
..Default::default()
};
let result = client.website().data().create(&body)?;
println!("{}", result.id);Sourcepub fn list(&self) -> Result<Vec<Value>>
pub fn list(&self) -> Result<Vec<Value>>
GET /website/data
Get the data that is shared with the CT website
Use Self::list_with to pass query parameters.
§Example
for item in client.website().data().list()? {
println!("{:?}", item);
}Sourcepub fn list_with(&self, query: &GetWebsiteDataQuery) -> Result<Vec<Value>>
pub fn list_with(&self, query: &GetWebsiteDataQuery) -> Result<Vec<Value>>
GET /website/data
Like Self::list, with query parameters.
Get the data that is shared with the CT website
Trait Implementations§
Source§impl<'a> Clone for WebsiteDataResource<'a>
impl<'a> Clone for WebsiteDataResource<'a>
impl<'a> Copy for WebsiteDataResource<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for WebsiteDataResource<'a>
impl<'a> !UnwindSafe for WebsiteDataResource<'a>
impl<'a> Freeze for WebsiteDataResource<'a>
impl<'a> Send for WebsiteDataResource<'a>
impl<'a> Sync for WebsiteDataResource<'a>
impl<'a> Unpin for WebsiteDataResource<'a>
impl<'a> UnsafeUnpin for WebsiteDataResource<'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