pub enum RepoVisibilityInput {
Public,
Private,
}Expand description
Write-side narrowing of Visibility for repo
bodies. The repo read shape (Repo.visibility) still uses the
full three-state enum — a GET on the seeded pathstash repo
returns "unlisted" like always. This type only constrains what
the API will accept from a client: Unlisted is system-pinned,
users can’t enter or leave it through the API, so it doesn’t
appear in POST /repos or PATCH .../visibility bodies.
Generated clients see only public | private on inputs and the
Unlisted write is unreachable by construction. Graph and path
bodies use the full Visibility enum; all three values are legal
there.
JSON schema
{
"description": "Write-side narrowing of `Visibility` for repo\nbodies. The repo *read* shape (`Repo.visibility`) still uses the\nfull three-state enum — a `GET` on the seeded `pathstash` repo\nreturns `\"unlisted\"` like always. This type only constrains what\nthe API will *accept* from a client: `Unlisted` is system-pinned,\nusers can't enter or leave it through the API, so it doesn't\nappear in `POST /repos` or `PATCH .../visibility` bodies.\nGenerated clients see only `public | private` on inputs and the\n`Unlisted` write is unreachable by construction. Graph and path\nbodies use the full `Visibility` enum; all three values are legal\nthere.",
"type": "string",
"enum": [
"public",
"private"
]
}Variants§
Trait Implementations§
Source§impl Clone for RepoVisibilityInput
impl Clone for RepoVisibilityInput
Source§fn clone(&self) -> RepoVisibilityInput
fn clone(&self) -> RepoVisibilityInput
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 moreimpl Copy for RepoVisibilityInput
Source§impl Debug for RepoVisibilityInput
impl Debug for RepoVisibilityInput
Source§impl<'de> Deserialize<'de> for RepoVisibilityInput
impl<'de> Deserialize<'de> for RepoVisibilityInput
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 Display for RepoVisibilityInput
impl Display for RepoVisibilityInput
impl Eq for RepoVisibilityInput
Source§impl FromStr for RepoVisibilityInput
impl FromStr for RepoVisibilityInput
Source§impl Hash for RepoVisibilityInput
impl Hash for RepoVisibilityInput
Source§impl Ord for RepoVisibilityInput
impl Ord for RepoVisibilityInput
Source§fn cmp(&self, other: &RepoVisibilityInput) -> Ordering
fn cmp(&self, other: &RepoVisibilityInput) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RepoVisibilityInput
impl PartialEq for RepoVisibilityInput
Source§fn eq(&self, other: &RepoVisibilityInput) -> bool
fn eq(&self, other: &RepoVisibilityInput) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for RepoVisibilityInput
impl PartialOrd for RepoVisibilityInput
Source§impl Serialize for RepoVisibilityInput
impl Serialize for RepoVisibilityInput
impl StructuralPartialEq for RepoVisibilityInput
Source§impl TryFrom<&String> for RepoVisibilityInput
impl TryFrom<&String> for RepoVisibilityInput
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for RepoVisibilityInput
impl TryFrom<&str> for RepoVisibilityInput
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for RepoVisibilityInput
impl TryFrom<String> for RepoVisibilityInput
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for RepoVisibilityInput
impl RefUnwindSafe for RepoVisibilityInput
impl Send for RepoVisibilityInput
impl Sync for RepoVisibilityInput
impl Unpin for RepoVisibilityInput
impl UnsafeUnpin for RepoVisibilityInput
impl UnwindSafe for RepoVisibilityInput
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.