#[non_exhaustive]pub struct ProjectBlock {
pub name: String,
pub repo: String,
pub access_mode: AccessMode,
}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.name: String§repo: String§access_mode: AccessModeImplementations§
Source§impl ProjectBlock
impl ProjectBlock
Sourcepub const fn new(name: String, repo: String, access_mode: AccessMode) -> Self
pub const fn new(name: String, repo: String, access_mode: AccessMode) -> Self
Construct a ProjectBlock.
Trait Implementations§
Source§impl Clone for ProjectBlock
impl Clone for ProjectBlock
Source§fn clone(&self) -> ProjectBlock
fn clone(&self) -> ProjectBlock
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 ProjectBlock
impl Debug for ProjectBlock
Source§impl<'de> Deserialize<'de> for ProjectBlock
impl<'de> Deserialize<'de> for ProjectBlock
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
Auto Trait Implementations§
impl Freeze for ProjectBlock
impl RefUnwindSafe for ProjectBlock
impl Send for ProjectBlock
impl Sync for ProjectBlock
impl Unpin for ProjectBlock
impl UnsafeUnpin for ProjectBlock
impl UnwindSafe for ProjectBlock
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