svn_client_info2_t

Struct svn_client_info2_t 

Source
#[repr(C)]
pub struct svn_client_info2_t { pub URL: *const c_char, pub rev: svn_revnum_t, pub repos_root_URL: *const c_char, pub repos_UUID: *const c_char, pub kind: svn_node_kind_t, pub size: svn_filesize_t, pub last_changed_rev: svn_revnum_t, pub last_changed_date: apr_time_t, pub last_changed_author: *const c_char, pub lock: *const svn_lock_t, pub wc_info: *const svn_wc_info_t, }
Expand description

A structure which describes various system-generated metadata about a working-copy path or URL.

@note Fields may be added to the end of this structure in future versions. Therefore, users shouldn’t allocate structures of this type, to preserve binary compatibility.

@since New in 1.7.

Fields§

§URL: *const c_char

Where the item lives in the repository.

§rev: svn_revnum_t

The revision of the object. If the target is a working-copy path, then this is its current working revnum. If the target is a URL, then this is the repos revision that it lives in.

§repos_root_URL: *const c_char

The root URL of the repository.

§repos_UUID: *const c_char

The repository’s UUID.

§kind: svn_node_kind_t

The node’s kind.

§size: svn_filesize_t

The size of the file in the repository (untranslated, e.g. without adjustment of line endings and keyword expansion). Only applicable for file – not directory – URLs. For working copy paths, @a size will be #SVN_INVALID_FILESIZE.

§last_changed_rev: svn_revnum_t

The last revision in which this object changed.

§last_changed_date: apr_time_t

The date of the last_changed_rev.

§last_changed_author: *const c_char

The author of the last_changed_rev.

§lock: *const svn_lock_t

An exclusive lock, if present. Could be either local or remote.

§wc_info: *const svn_wc_info_t

Possible information about the working copy, NULL if not valid.

Trait Implementations§

Source§

impl Default for svn_client_info2_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.