pub struct ReposCreateAutolinkRequest {
pub key_prefix: String,
pub url_template: String,
pub is_alphanumeric: Option<bool>,
}
Fields§
§key_prefix: String
This prefix appended by certain characters will generate a link any time it is found in an issue, pull request, or commit.
url_template: String
The URL must contain <num>
for the reference number. <num>
matches different characters depending on the value of is_alphanumeric
.
is_alphanumeric: Option<bool>
Whether this autolink reference matches alphanumeric characters. If true, the <num>
parameter of the url_template
matches alphanumeric characters A-Z
(case insensitive), 0-9
, and -
. If false, this autolink reference only matches numeric characters.
Implementations§
Source§impl ReposCreateAutolinkRequest
impl ReposCreateAutolinkRequest
pub fn new( key_prefix: String, url_template: String, ) -> ReposCreateAutolinkRequest
Trait Implementations§
Source§impl Clone for ReposCreateAutolinkRequest
impl Clone for ReposCreateAutolinkRequest
Source§fn clone(&self) -> ReposCreateAutolinkRequest
fn clone(&self) -> ReposCreateAutolinkRequest
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 ReposCreateAutolinkRequest
impl Debug for ReposCreateAutolinkRequest
Source§impl Default for ReposCreateAutolinkRequest
impl Default for ReposCreateAutolinkRequest
Source§fn default() -> ReposCreateAutolinkRequest
fn default() -> ReposCreateAutolinkRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReposCreateAutolinkRequest
impl<'de> Deserialize<'de> for ReposCreateAutolinkRequest
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 StructuralPartialEq for ReposCreateAutolinkRequest
Auto Trait Implementations§
impl Freeze for ReposCreateAutolinkRequest
impl RefUnwindSafe for ReposCreateAutolinkRequest
impl Send for ReposCreateAutolinkRequest
impl Sync for ReposCreateAutolinkRequest
impl Unpin for ReposCreateAutolinkRequest
impl UnwindSafe for ReposCreateAutolinkRequest
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