pub enum SyncResourceKey {
Computer {
computer_id: String,
},
Project {
project_id: String,
},
Session {
session_id: String,
},
File {
file_id: String,
},
}Variants§
Implementations§
Source§impl SyncResourceKey
impl SyncResourceKey
pub fn kind(&self) -> ResourceKind
pub fn id(&self) -> &str
pub fn validate(&self) -> SyncResult<()>
Trait Implementations§
Source§impl Clone for SyncResourceKey
impl Clone for SyncResourceKey
Source§impl Debug for SyncResourceKey
impl Debug for SyncResourceKey
Source§impl<'de> Deserialize<'de> for SyncResourceKey
impl<'de> Deserialize<'de> for SyncResourceKey
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SyncResourceKey
Source§impl Hash for SyncResourceKey
impl Hash for SyncResourceKey
Source§impl PartialEq for SyncResourceKey
impl PartialEq for SyncResourceKey
Source§impl Serialize for SyncResourceKey
impl Serialize for SyncResourceKey
impl StructuralPartialEq for SyncResourceKey
Auto Trait Implementations§
impl Forget for SyncResourceKey
impl Freeze for SyncResourceKey
impl Move for SyncResourceKey
impl RefUnwindSafe for SyncResourceKey
impl Send for SyncResourceKey
impl Sync for SyncResourceKey
impl Unpin for SyncResourceKey
impl UnsafeUnpin for SyncResourceKey
impl UnwindSafe for SyncResourceKey
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