#[non_exhaustive]pub struct IssueScope {
pub profile_id: String,
pub profile_name: String,
pub app_origin: String,
pub organisation_id: String,
pub team_keys: Vec<String>,
pub linear_workspace: Option<String>,
}Expand description
The profile, organisation and team keys that references are recognised against, with the app origin that issue links use.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.profile_id: String§profile_name: String§app_origin: String§organisation_id: String§team_keys: Vec<String>The keys to recognise: the loaded team keys, archived teams included, or the profile’s fallback keys while none are loaded.
linear_workspace: Option<String>The Linear workspace whose issue links name these issues, the first
path segment of its links. None recognises no Linear link.
Implementations§
Source§impl IssueScope
impl IssueScope
pub fn new( profile_id: &str, profile_name: &str, app_origin: &str, organisation_id: &str, ) -> Self
pub fn with_linear_workspace(self, workspace: &str) -> Self
pub fn with_team_keys( self, keys: impl IntoIterator<Item = impl Into<String>>, ) -> Self
Bind a navigation URL to the profile and organisation that resolved it.
Trait Implementations§
Source§impl Clone for IssueScope
impl Clone for IssueScope
impl Eq for IssueScope
Source§impl PartialEq for IssueScope
impl PartialEq for IssueScope
impl StructuralPartialEq for IssueScope
Auto Trait Implementations§
impl Forget for IssueScope
impl Freeze for IssueScope
impl Move for IssueScope
impl RefUnwindSafe for IssueScope
impl Send for IssueScope
impl Sync for IssueScope
impl Unpin for IssueScope
impl UnsafeUnpin for IssueScope
impl UnwindSafe for IssueScope
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