pub enum PathBinding {
Directory(DirectoryBinding),
RegularFile(RegularFileBinding),
Symlink(SymlinkBinding),
}Variants§
Implementations§
Source§impl PathBinding
impl PathBinding
pub fn path(&self) -> &str
pub fn object_id(&self) -> &str
pub fn kind(&self) -> PathBindingKind
pub fn object_version_id(&self) -> Option<&str>
pub fn bytes(&self) -> Option<u64>
pub fn executable(&self) -> Option<bool>
pub fn symlink_target(&self) -> Option<&str>
pub fn content_sha256(&self) -> Option<&str>
Trait Implementations§
Source§impl Clone for PathBinding
impl Clone for PathBinding
Source§fn clone(&self) -> PathBinding
fn clone(&self) -> PathBinding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PathBinding
impl Debug for PathBinding
Source§impl<'de> Deserialize<'de> for PathBinding
impl<'de> Deserialize<'de> for PathBinding
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 PathBinding
Source§impl PartialEq for PathBinding
impl PartialEq for PathBinding
Source§impl Serialize for PathBinding
impl Serialize for PathBinding
impl StructuralPartialEq for PathBinding
Auto Trait Implementations§
impl Freeze for PathBinding
impl RefUnwindSafe for PathBinding
impl Send for PathBinding
impl Sync for PathBinding
impl Unpin for PathBinding
impl UnsafeUnpin for PathBinding
impl UnwindSafe for PathBinding
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.