pub struct ResourceClient { /* private fields */ }
Expand description
A client for interacting with the data in a specific resource stored as a child element of a VEN on the VTN.
To retrieve or create a resource, refer to the VenClient
.
Implementations§
Source§impl ResourceClient
impl ResourceClient
Sourcepub fn id(&self) -> &ResourceId
pub fn id(&self) -> &ResourceId
Get the resource ID
Sourcepub fn created_date_time(&self) -> DateTime<Utc>
pub fn created_date_time(&self) -> DateTime<Utc>
Get the time the resource was created on the VTN
Sourcepub fn modification_date_time(&self) -> DateTime<Utc>
pub fn modification_date_time(&self) -> DateTime<Utc>
Get the time the resource was last updated on the VTN
Sourcepub fn content(&self) -> &ResourceContent
pub fn content(&self) -> &ResourceContent
Read the content of the resource
Sourcepub fn content_mut(&mut self) -> &mut ResourceContent
pub fn content_mut(&mut self) -> &mut ResourceContent
Modify the data of the resource.
Make sure to call update
after your modifications to store them on the VTN.
Trait Implementations§
Source§impl Clone for ResourceClient
impl Clone for ResourceClient
Source§fn clone(&self) -> ResourceClient
fn clone(&self) -> ResourceClient
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ResourceClient
impl !RefUnwindSafe for ResourceClient
impl Send for ResourceClient
impl Sync for ResourceClient
impl Unpin for ResourceClient
impl !UnwindSafe for ResourceClient
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