#[repr(u8)]pub enum PropertyValue {
Single(String),
Multiple(Vec<String>),
Unset,
}Expand description
The value of one custom property on a repository.
On the wire a single value is a string, a multi-select value is an array of strings, and no value is null.
Variants§
Single(String)
A single value.
Multiple(Vec<String>)
The values of a multi-select property.
Unset
No value.
Implementations§
Trait Implementations§
Source§impl Clone for PropertyValue
impl Clone for PropertyValue
Source§fn clone(&self) -> PropertyValue
fn clone(&self) -> PropertyValue
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 PropertyValue
impl Debug for PropertyValue
impl Eq for PropertyValue
Source§impl<'ʄ> Facet<'ʄ> for PropertyValue
impl<'ʄ> Facet<'ʄ> for PropertyValue
Source§impl PartialEq for PropertyValue
impl PartialEq for PropertyValue
impl StructuralPartialEq for PropertyValue
Source§impl TryFrom<&PropertyValue> for Value
impl TryFrom<&PropertyValue> for Value
Source§type Error = PropertyValueError
type Error = PropertyValueError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for PropertyValue
impl RefUnwindSafe for PropertyValue
impl Send for PropertyValue
impl Sync for PropertyValue
impl Unpin for PropertyValue
impl UnsafeUnpin for PropertyValue
impl UnwindSafe for PropertyValue
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.