pub enum SourceTargetBinding {
ViewedThread,
NamedThread {
scope: CollaborationScope,
},
PinnedRevision {
scope: CollaborationScope,
revision: CollaborationRevision,
},
}Variants§
Implementations§
Source§impl SourceTargetBinding
impl SourceTargetBinding
Sourcepub fn scope<'a>(
&'a self,
viewed_thread: &'a CollaborationScope,
) -> Result<&'a CollaborationScope, SourceTargetError>
pub fn scope<'a>( &'a self, viewed_thread: &'a CollaborationScope, ) -> Result<&'a CollaborationScope, SourceTargetError>
Selects identity only. The caller must authorize source access, verify inheritance, and choose a revision/frontier in the returned Thread.
Trait Implementations§
Source§impl Clone for SourceTargetBinding
impl Clone for SourceTargetBinding
Source§fn clone(&self) -> SourceTargetBinding
fn clone(&self) -> SourceTargetBinding
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 SourceTargetBinding
impl Debug for SourceTargetBinding
Source§impl<'de> Deserialize<'de> for SourceTargetBinding
impl<'de> Deserialize<'de> for SourceTargetBinding
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SourceTargetBinding, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SourceTargetBinding, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SourceTargetBinding
Source§impl PartialEq for SourceTargetBinding
impl PartialEq for SourceTargetBinding
Source§impl Serialize for SourceTargetBinding
impl Serialize for SourceTargetBinding
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SourceTargetBinding
Auto Trait Implementations§
impl Freeze for SourceTargetBinding
impl RefUnwindSafe for SourceTargetBinding
impl Send for SourceTargetBinding
impl Sync for SourceTargetBinding
impl Unpin for SourceTargetBinding
impl UnsafeUnpin for SourceTargetBinding
impl UnwindSafe for SourceTargetBinding
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