svn_wc_external_item2_t

Struct svn_wc_external_item2_t 

Source
#[repr(C)]
pub struct svn_wc_external_item2_t { pub target_dir: *const c_char, pub url: *const c_char, pub revision: svn_opt_revision_t, pub peg_revision: svn_opt_revision_t, }
Expand description

One external item. This usually represents one line from an svn:externals description but with the path and URL canonicalized.

In order to avoid backwards compatibility problems clients should use svn_wc_external_item2_create() to allocate and initialize this structure instead of doing so themselves.

@since New in 1.5.

Fields§

§target_dir: *const c_char

The name of the subdirectory into which this external should be checked out. This is relative to the parent directory that holds this external item. (Note that these structs are often stored in hash tables with the target dirs as keys, so this field will often be redundant.)

§url: *const c_char

Where to check out from. This is possibly a relative external URL, as allowed in externals definitions, but without the peg revision.

§revision: svn_opt_revision_t

What revision to check out. The only valid kinds for this are svn_opt_revision_number, svn_opt_revision_date, and svn_opt_revision_head.

§peg_revision: svn_opt_revision_t

The peg revision to use when checking out. The only valid kinds are svn_opt_revision_number, svn_opt_revision_date, and svn_opt_revision_head.

Trait Implementations§

Source§

impl Default for svn_wc_external_item2_t

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.