pub struct MemoryNode {
pub id: EntityId,
pub kind: String,
pub label: String,
pub repository: Option<String>,
pub branch: Option<String>,
pub attributes: BTreeMap<String, String>,
}Fields§
§id: EntityId§kind: String§label: String§repository: Option<String>§branch: Option<String>§attributes: BTreeMap<String, String>Implementations§
Source§impl MemoryNode
impl MemoryNode
Sourcepub fn new(
id: EntityId,
kind: impl Into<String>,
label: impl Into<String>,
) -> Result<Self>
pub fn new( id: EntityId, kind: impl Into<String>, label: impl Into<String>, ) -> Result<Self>
pub fn in_repository(self, repository: impl Into<String>) -> Self
pub fn on_branch(self, branch: impl Into<String>) -> Self
pub fn with_attribute( self, key: impl Into<String>, value: impl Into<String>, ) -> Self
Trait Implementations§
Source§impl Clone for MemoryNode
impl Clone for MemoryNode
Source§fn clone(&self) -> MemoryNode
fn clone(&self) -> MemoryNode
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 MemoryNode
impl Debug for MemoryNode
Source§impl<'de> Deserialize<'de> for MemoryNode
impl<'de> Deserialize<'de> for MemoryNode
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 MemoryNode
Source§impl PartialEq for MemoryNode
impl PartialEq for MemoryNode
Source§impl Serialize for MemoryNode
impl Serialize for MemoryNode
impl StructuralPartialEq for MemoryNode
Auto Trait Implementations§
impl Freeze for MemoryNode
impl RefUnwindSafe for MemoryNode
impl Send for MemoryNode
impl Sync for MemoryNode
impl Unpin for MemoryNode
impl UnsafeUnpin for MemoryNode
impl UnwindSafe for MemoryNode
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