pub struct CreateReq {
pub description: Option<String>,
pub name: Option<String>,
pub project: Option<String>,
pub public: Option<bool>,
}Fields§
§description: Option<String>Description is a free-form blurb, max 4KiB.
name: Option<String>Name is the repo’s handle, unique within the scope, and the last segment of both clone URLs. Must match ^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$; a trailing ".git" is stripped first. Required.
project: Option<String>Project narrows the repo to a sub-scope of the org. Omit it to use the caller’s own X-Project-Id scope; it can never widen past the caller’s org.
public: Option<bool>Public grants ANONYMOUS read (fetch) only; push and the whole control plane stay org-authed. Defaults to false.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CreateReq
impl<'de> Deserialize<'de> for CreateReq
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 CreateReq
Auto Trait Implementations§
impl Freeze for CreateReq
impl RefUnwindSafe for CreateReq
impl Send for CreateReq
impl Sync for CreateReq
impl Unpin for CreateReq
impl UnsafeUnpin for CreateReq
impl UnwindSafe for CreateReq
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