pub struct CherryPick {
pub source_branch_id: Uuid,
pub target_branch_id: Uuid,
pub entity_selections: Vec<EntitySelection>,
pub message: Option<String>,
}Expand description
Fields§
§source_branch_id: UuidThe branch from which entities are sourced.
target_branch_id: UuidThe branch into which the entities are written.
entity_selections: Vec<EntitySelection>Ordered list of entity selections to process.
message: Option<String>Optional human-readable commit message.
Implementations§
Source§impl CherryPick
impl CherryPick
Sourcepub fn all_of_type(source: Uuid, target: Uuid, entity_type: EntityType) -> Self
pub fn all_of_type(source: Uuid, target: Uuid, entity_type: EntityType) -> Self
Sourcepub fn specific_entities(
source: Uuid,
target: Uuid,
entity_type: EntityType,
ids: Vec<String>,
) -> Self
pub fn specific_entities( source: Uuid, target: Uuid, entity_type: EntityType, ids: Vec<String>, ) -> Self
Sourcepub fn specific_fields(self, fields: Vec<String>) -> Self
pub fn specific_fields(self, fields: Vec<String>) -> Self
Restricts the last added selection to only the specified field names.
Useful for chaining with specific_entities.
Sourcepub fn with_message(self, message: impl Into<String>) -> Self
pub fn with_message(self, message: impl Into<String>) -> Self
Attaches a commit message to the cherry-pick.
Trait Implementations§
Source§impl Clone for CherryPick
impl Clone for CherryPick
Source§fn clone(&self) -> CherryPick
fn clone(&self) -> CherryPick
Returns a duplicate 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 moreSource§impl Debug for CherryPick
impl Debug for CherryPick
Source§impl<'de> Deserialize<'de> for CherryPick
impl<'de> Deserialize<'de> for CherryPick
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
Source§impl PartialEq for CherryPick
impl PartialEq for CherryPick
Source§impl Serialize for CherryPick
impl Serialize for CherryPick
impl StructuralPartialEq for CherryPick
Auto Trait Implementations§
impl Freeze for CherryPick
impl RefUnwindSafe for CherryPick
impl Send for CherryPick
impl Sync for CherryPick
impl Unpin for CherryPick
impl UnsafeUnpin for CherryPick
impl UnwindSafe for CherryPick
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more